Do not match
not(..., type = c("greedy", "lazy", "possessive"))
shortcuts
, R variables, text, or other rex
functions.
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
Other rex:
%or%()
,
capture()
,
character_class()
,
counts
,
group()
,
lookarounds
,
rex()
,
shortcuts
,
wildcards