| counts {rex} | R Documentation |
Counts
Description
Functions to restrict a regex to a specific number
Usage
n_times(x, n, type = c("greedy", "lazy", "possessive"))
between(x, low, high, type = c("greedy", "lazy", "possessive"))
at_least(x, n, type = c("greedy", "lazy", "possessive"))
at_most(x, n, type = c("greedy", "lazy", "possessive"))
Arguments
x |
A regex pattern. |
n |
An integer number |
type |
the type of match to perform. There are three match types
|
low |
An integer number for the lower limit. |
high |
An integer number for the upper limit. |
Functions
-
n_times:xmust occur exactlyntimes. -
between:xmust occur betweenlowandhightimes. -
at_least:xmust occur at leastntimes. -
at_most:xmust occur at mostntimes.
See Also
Other rex:
%or%(),
capture(),
character_class(),
group(),
lookarounds,
not(),
rex(),
shortcuts,
wildcards