zero_or_more(..., type = c("greedy", "lazy", "possessive"))one_or_more(..., type = c("greedy", "lazy", "possessive"))
maybe(..., type = c("greedy", "lazy", "possessive"))
shortcuts
, R variables, text, or other 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 anczero_or_more
: match...
zero or more times.one_or_more
: match...
one or more times.maybe
: match...
zero or one 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
; at_least
,
at_most
, between
,
counts
, n
,
n_times
; group
;
not
; rex
, rex_
;
shortcuts