Table of Contents

Class: compile qm/external/DocumentTemplate/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 Mon Jan 3 09:42:36 2005 by HappyDoc version 2.1