Functions to restrict a regex to a specific number
A regex pattern.
An integer number
the type of match to perform.
There are three match types
greedy: match the longest string. This is the default matching type.
lazy: match the shortest string. This matches the shortest string from the same anchor point, not necessarily the shortest global string.
possessive: match and don't allow backtracking
An integer number for the lower limit.
An integer number for the upper limit.
n_times: x must occur exactly n times.
between: x must occur between low and high times.
at_least: x must occur at least n times.
at_most: x must occur at most n times.
Other rex:
%or%(),
capture(),
character_class(),
group(),
lookarounds,
not(),
rex(),
shortcuts,
wildcards