Skip to content

Create a regular expression

String manipulation

re_matches()
Match function
re_substitutes()
Substitute regular expressions in a string with another string.

For developers

as.regex()
Coerce objects to a regex.
as.character(<regex>) print(<regex>) regex()
Regular Expression
character_class_escape()
Character class escapes
escape()
Escape characters for a regex
shortcuts
Shortcuts
single_shortcuts
Single shortcuts
register_shortcuts()
Register the Rex shortcuts
rex_mode()
Toggles rex mode.