re_type
,
that will contain which support framework has been built:
"re" for PCRE,
"tclre" for Tcl regexp, and
None for neither.
obj.lastmatch = obj.match(str_to_match)
The string passwd in a REGEXP clause will also be compiled implicitly into a PCRE object. The object is dereferenced before the expect method returns. Using groups when using REGEXP will gain nothing, use compiled objects instead.
ExpectPy.compile
is the same method as
re.compile
.
Refer to the re package in the Python library documentation.
ExpectPy.compile
is the same method as
tclre.compile
.
ExpectPy.error
) if ExpectPy.REGEXP
or ExpectPy.COMPILED are used.