This module implements regular expression operations. Regular expression syntax supported is a subset of CPython re module (and actually is a subset of POSIX extended regular expressions).
Supported operators are:
. Match any character. [] Match set of characters. Individual characters and ranges are supported.
.
[]
^ $ ? * + ?? *? +?
Counted repetitions ({m,n}), more advanced assertions, named groups, etc. are not supported.
({m,n})
Compile regular expression, return regex object.
regex object
Match regex against string. Match always happens from starting position in a string.
string
Search regex in a string. Unlike match, this will search string for first position which matches regex (which still may be 0 if regex is anchored).
Flag value, display debug information about compiled expression.
Compiled regular expression. Instances of this class are created using ure.compile().
ure.compile()
Match objects as returned by match() and search() methods.
match()
search()
Only numeric groups are supported.