Module Expr Str Import alias FunctionDef arguments args NameParam NameParam NameParam defaults Num body Expr Str Assign NameStore Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad If BoolOpAnd NameLoad CompareLt Call AttributeLoad NameLoad attr Call NameLoad NameLoad body Assign NameStore NameLoad Return NameLoad decorator_list If CompareEq NameLoad Str body Import alias Expr Call AttributeLoad NameLoad attr
N/A N/A Additional regular expression utilities, to make it easier to sync up
with Java regular expression code.

>>> import re
>>> from re_util import fullmatch
>>> string = 'abcd'
>>> r1 = re.compile('abcd')
>>> r2 = re.compile('bc')
>>> r3 = re.compile('abc')
>>> fullmatch(r1, string)  # doctest: +ELLIPSIS
<_sre.SRE_Match object at 0x...>
>>> fullmatch(r2, string)
>>> fullmatch(r3, string)
>>> r = re.compile('\d{8}|\d{10,11}')
>>> m = fullmatch(r, '1234567890')
>>> m.end()
10
>>> r = re.compile(u'[+\uff0b\d]', re.UNICODE)
>>> m = fullmatch(r, u'\uff10')
>>> m.end()
1
 N/A re fullmatch N/A N/A pattern string flags N/A 0 N/A N/A Try to apply the pattern at the start of the string, returning a match
    object if the whole string matches, or None if no match was found. N/A grouped_pattern N/A N/A re compile N/A ^(?:%s)$ N/A pattern pattern N/A pattern flags N/A m N/A N/A grouped_pattern match string N/A N/A m N/A N/A N/A m end N/A len string N/A N/A m None N/A m N/A N/A N/A __name__ __main__ N/A N/A doctest N/A N/A N/A doctest testmod