Rexy#

Rexy offers an interface for common regular expression patterns. It builds few core modules on top of regular expressions. These modules are briefly described here.

See Rexy Functions.

Expression#

Expression is a simple wrapper around a regular expression. It adds pickling functionality to the compiled regular expression. This speeds up the compilation process of the sophisticated regular expressions by loading the pickled compiled regular expression. The compilation speed may increase by a factor of 100x or even more for expressions like RULE_DURATION.

Expression Group#

ExpressionGroup is intended to group multiple Expression s and to allow using them as a single regular expression. It also provides a few additional useful methods. See ExpressionGroup.get_matched_expression() and ExpressionGroup.smart_parse().

Expression Result#

ExpressionResult is an interface for the result of a regular expression match. It ensures that each parsed result has at least start, end, value and expression attributes.