ADL_query_translator modules/sre.py

modules / sre.py 

Imported Modules   

import copy_reg
import sre_compile
import sre_parse
import string

Functions   
  purge 
purge ()

Clear the regular expression cache

  search 
search (
        pattern,
        string,
        flags=0,
        )

Scan through string looking for a match to the pattern, returning a match object, or None if no match was found.

  _expand 
_expand (
        pattern,
        match,
        template,
        )
  sub 
sub (
        pattern,
        repl,
        string,
        count=0,
        )

Return the string obtained by replacing the leftmost non-overlapping occurrences of the pattern in string by the replacement repl

  _subn 
_subn (
        pattern,
        template,
        string,
        count=0,
        )
  _pickle 
_pickle ( p )
  _join 
_join ( seq,  sep )
  _split 
_split (
        pattern,
        string,
        maxsplit=0,
        )
  compile 
compile ( pattern,  flags=0 )

Compile a regular expression pattern, returning a pattern object.

  split 
split (
        pattern,
        string,
        maxsplit=0,
        )

Split the source string by the occurrences of the pattern, returning a list containing the resulting substrings.

  template 
template ( pattern,  flags=0 )

Compile a template pattern, returning a pattern object

  escape 
escape ( pattern )

Escape all non-alphanumeric characters in pattern.

  subn 
subn (
        pattern,
        repl,
        string,
        count=0,
        )

Return a 2-tuple containing (new_string, number). new_string is the string obtained by replacing the leftmost non-overlapping occurrences of the pattern in the source string by the replacement repl. number is the number of substitutions that were made.

  _compile 
_compile ( *key )
Exceptions   

error, v

  _sub 
_sub (
        pattern,
        template,
        string,
        count=0,
        )
  findall 
findall (
        pattern,
        string,
        maxsplit=0,
        )

Return a list of all non-overlapping matches in the string.

If one or more groups are present in the pattern, return a list of groups; this will be a list of tuples if the pattern has more than one group.

Empty matches are included in the result.

  match 
match (
        pattern,
        string,
        flags=0,
        )

Try to apply the pattern at the start of the string, returning a match object, or None if no match was found.

  _compile_repl 
_compile_repl ( *key )
Exceptions   

error, v

Classes   

Scanner


This document was automatically generated Thu Mar 4 12:45:31 2004 by HappyDoc version WORKING