Table of Contents

Class: compile PmwContribD-r2_0_1/ts_regex.py

Methods   
__init__
match
match_group
match_regs
search
search_group
search_regs
  __init__ 
__init__ ( self,  *args )

  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 Sep 17 17:47:46 2001 by HappyDoc version r2_0