group_or(..., group.all = TRUE)
TRUE the resulting `or` concatenated
elements will be wrapped with grouping parenthesis.@) (e.g., "@rm_hash") or a regular expression from
regex_supplement dictionary prefixed with an at
(@) (e.g., "@time_12_hours").A wrapper for group and pastex that wraps each sub-expression
element with grouping parenthesis and then concatenate/joins grouped strings
with a regex `or` ("|"). Equivalent to pastex(group(...), sep = "|").
group_or("@rm_hash", "@rm_tag")[1] "(((?<!/)((#)(\\w+)))|((?<![@\\w])(@)(([a-z0-9_]+)\\b)))"group_or("them", "those", "that", "these")[1] "((them)|(those)|(that)|(these))"group_or("them", "those", "that", "these", group.all = FALSE)[1] "(them)|(those)|(that)|(these)"