or: Or

View source: R/or.R

%or%R Documentation

Or

Description

The special binary function %or% can be used to specify a set of optional matches.

Usage

x %or% y

or(...)

Arguments

x

A string.

y

A string.

...

shortcuts, R variables, text, or other rex functions.

See Also

Other rex: capture(), character_class(), counts, group(), lookarounds, not(), rex(), shortcuts, wildcards


rex documentation built on March 28, 2026, 5:07 p.m.