Table of Contents

Class: compile ../HappyDoc-r2_1/happydoclib/docstring/StructuredText/ts_regex.py
Methods   
__init__
_init
match
match_group
match_regs
search
search_group
search_regs
  __init__ 
__init__ ( self,  *args )

  _init 
_init ( self,  r )

  match 
match (
        self,
        string,
        pos=0,
        )

  match_group 
match_group (
        self,
        str,
        group,
        pos=0,
        )

Match a pattern against a string

If the string does not match the pattern, then None is returned, otherwise, the length of the match, as well as any specified group are returned.

  match_regs 
match_regs (
        self,
        str,
        pos=0,
        )

Match a pattern against a string

If the string does not match the pattern, then None is returned, otherwise, the regs attribute of the expression is returned.

  search 
search (
        self,
        string,
        pos=0,
        )

  search_group 
search_group (
        self,
        str,
        group,
        pos=0,
        )

Search a string for a pattern.

If the pattern was not found, then None is returned, otherwise, the location where the pattern was found, as well as any specified group are returned.

  search_regs 
search_regs (
        self,
        str,
        pos=0,
        )

Search a string for a pattern.

If the pattern was not found, then None is returned, otherwise, the regs attribute of the expression is returned.


Table of Contents

This document was automatically generated on Sat Aug 24 16:57:29 2002 by HappyDoc version 2.1