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"))
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 ancn_times
:x
must occur exactlyn
times.between
:x
must occur betweenlow
andhigh
times.at_least
:x
must occur at leastn
times.at_most
:x
must occur at mostn
times..
, capture
,
capture_group
;
%if_next_is%
,
%if_next_isnt%
,
%if_prev_is%
,
%if_prev_isnt%
,
lookarounds
; %or%
,
or
; any_of
,
character_class
, except
,
except_any_of
,
except_some_of
,
exclude_range
, none_of
,
one_of
, range
,
some_of
; group
;
maybe
, one_or_more
,
wildcards
, zero_or_more
,
zero_or_one
; not
;
rex
, rex_
;
shortcuts