Docs for A.regex_tag

[ Python Tutorial ] [ Python Libraries ] [ web2py epydoc ]

Description


<type '_sre.SRE_Pattern'>


Compiled regular expression objects


Attributes


A.regex_tag.__class__ <type 'type'> extends (<type 'object'>,) belongs to class <type 'type'>
Compiled regular expression objects

A.regex_tag.__copy__ <type 'builtin_function_or_method'> belongs to class <type 'builtin_function_or_method'>

A.regex_tag.__deepcopy__ <type 'builtin_function_or_method'> belongs to class <type 'builtin_function_or_method'>

A.regex_tag.__delattr__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__delattr__('name') <==> del x.name

A.regex_tag.__doc__ <type 'str'> belongs to class <type 'str'>
str(object='') -> string Return a nice string representation of the object. If the argument is a string, the return value is the same object.

A.regex_tag.__format__ <type 'builtin_function_or_method'> belongs to class <type 'builtin_function_or_method'>
default object formatter

A.regex_tag.__getattribute__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__getattribute__('name') <==> x.name

A.regex_tag.__hash__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__hash__() <==> hash(x)

A.regex_tag.__init__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__init__(...) initializes x; see help(type(x)) for signature

A.regex_tag.__new__ <type 'builtin_function_or_method'> belongs to class <type 'builtin_function_or_method'>
T.__new__(S, ...) -> a new object with type S, a subtype of T

A.regex_tag.__reduce__ <type 'builtin_function_or_method'> belongs to class <type 'builtin_function_or_method'>
helper for pickle

A.regex_tag.__reduce_ex__ <type 'builtin_function_or_method'> belongs to class <type 'builtin_function_or_method'>
helper for pickle

A.regex_tag.__repr__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__repr__() <==> repr(x)

A.regex_tag.__setattr__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__setattr__('name', value) <==> x.name = value

A.regex_tag.__sizeof__ <type 'builtin_function_or_method'> belongs to class <type 'builtin_function_or_method'>
__sizeof__() -> int size of object in memory, in bytes

A.regex_tag.__str__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__str__() <==> str(x)

A.regex_tag.__subclasshook__ <type 'builtin_function_or_method'> belongs to class <type 'builtin_function_or_method'>
Abstract classes can override this to customize issubclass(). This is invoked early on by abc.ABCMeta.__subclasscheck__(). It should return True, False or NotImplemented. If it returns NotImplemented, the normal algorithm is used. Otherwise, it overrides the normal algorithm (and the outcome is cached).

A.regex_tag.findall <type 'builtin_function_or_method'> belongs to class <type 'builtin_function_or_method'>
findall(string[, pos[, endpos]]) --> list. Return a list of all non-overlapping matches of pattern in string.

A.regex_tag.finditer <type 'builtin_function_or_method'> belongs to class <type 'builtin_function_or_method'>
finditer(string[, pos[, endpos]]) --> iterator. Return an iterator over all non-overlapping matches for the RE pattern in string. For each match, the iterator returns a match object.

A.regex_tag.flags <type 'int'> belongs to class <type 'int'>
int(x=0) -> int or long int(x, base=10) -> int or long Convert a number or string to an integer, or return 0 if no arguments are given. If x is floating point, the conversion truncates towards zero. If x is outside the integer range, the function returns a long instead. If x is not a number or if base is given, then x must be a string or Unicode object representing an integer literal in the given base. The literal can be preceded by '+' or '-' and be surrounded by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to interpret the base from the string as an integer literal. >>> int('0b100', base=0) 4

A.regex_tag.groupindex <type 'dict'> belongs to class <type 'dict'>
dict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object's (key, value) pairs dict(iterable) -> new dictionary initialized as if via: d = {} for k, v in iterable: d[k] = v dict(**kwargs) -> new dictionary initialized with the name=value pairs in the keyword argument list. For example: dict(one=1, two=2)

A.regex_tag.groups <type 'int'> belongs to class <type 'int'>
int(x=0) -> int or long int(x, base=10) -> int or long Convert a number or string to an integer, or return 0 if no arguments are given. If x is floating point, the conversion truncates towards zero. If x is outside the integer range, the function returns a long instead. If x is not a number or if base is given, then x must be a string or Unicode object representing an integer literal in the given base. The literal can be preceded by '+' or '-' and be surrounded by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to interpret the base from the string as an integer literal. >>> int('0b100', base=0) 4

A.regex_tag.match <type 'builtin_function_or_method'> belongs to class <type 'builtin_function_or_method'>
match(string[, pos[, endpos]]) --> match object or None. Matches zero or more characters at the beginning of the string

A.regex_tag.pattern <type 'str'> belongs to class <type 'str'>
str(object='') -> string Return a nice string representation of the object. If the argument is a string, the return value is the same object.

A.regex_tag.scanner <type 'builtin_function_or_method'> belongs to class <type 'builtin_function_or_method'>

A.regex_tag.search <type 'builtin_function_or_method'> belongs to class <type 'builtin_function_or_method'>
search(string[, pos[, endpos]]) --> match object or None. Scan through string looking for a match, and return a corresponding match object instance. Return None if no position in the string matches.

A.regex_tag.split <type 'builtin_function_or_method'> belongs to class <type 'builtin_function_or_method'>
split(string[, maxsplit = 0]) --> list. Split string by the occurrences of pattern.

A.regex_tag.sub <type 'builtin_function_or_method'> belongs to class <type 'builtin_function_or_method'>
sub(repl, string[, count = 0]) --> newstring Return the string obtained by replacing the leftmost non-overlapping occurrences of pattern in string by the replacement repl.

A.regex_tag.subn <type 'builtin_function_or_method'> belongs to class <type 'builtin_function_or_method'>
subn(repl, string[, count = 0]) --> (newstring, number of subs) Return the tuple (new_string, number_of_subs_made) found by replacing the leftmost non-overlapping occurrences of pattern with the replacement repl.