rxn.utilities.regex

Functions to help build regex strings. See examples in the tests.

Functions

alternation(choices[, capture_group])

OR operator

capturing(initial_regex)

Add capturing parentheses to a regex string

optional(initial_regex[, capture_group])

Creates the regex string to make a group optional