Expand description
Flags, Special Characters etc. classified as Settings to be used as necessary meta information for patterns.
Here are the meta data such as flags, boundaries needed to be added to regular expressions.
For most methods except group
and named_group
,
the Settings
struct would be used and for these two, the GroupSettings
struct which
has one extra meta that is is_non_capture
.
There is a default implemention for both structs for ease of use and to reduce typing repetitive meta over and over as well as shortening code length.
Two methods are provided for setting an exact or a range of repetitions for an expression in case the only meta is either of them.
Those are exactly
and range
for non-group expressions called base
settings and grp_exactly
and grp_range
for group
settings.
Modules§
Structs§
- Group
Settings - A set of meta extending
Settings
struct by adding a property to determine if a group is capturing or not. - Settings
- A set of meta indicating what special characters (quantifiers), boundaries and flags should be added to an expression.
Enums§
- Flags
- Regular Expression Flags