weblib.rex

weblib.rex.extract_rex_list(rex, body)[source]

Return found matches.

weblib.rex.normalize_regexp(regexp, flags=0)[source]

Accept string or compiled regular expression object.

Compile string into regular expression object.

weblib.rex.rex(body, regexp, flags=0, byte=False, default=<object object>)[source]

Search regexp expression in body text.

weblib.rex.rex_list(body, rex, flags=0)[source]

Return found matches.

weblib.rex.rex_text(body, regexp, flags=0, default=<object object>)[source]

Search regexp expression in body text and then strip tags in found result.

weblib.rex.rex_text_list(body, rex, flags=0)[source]

Return found matches with stripped tags.