Friendly regular expressions for R.
The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:
Regular expressions are very powerful feature, however they are often difficult to interpret. Rex allows you to build complex regular expressions from human readable expressions. So instead of writing (and later trying to decipher)
You can writer
While these expressions are a big longer than their corresponding regular expression, they are much more readable and maintainable.
The vignettes have longer form usage examples.
rex()function call can include a number of functions and shortcuts. For a full list of the functions available please see
Rex functions are not exported because they are only useful within
rex()calls, but they can be temporarily attached using
rex_mode()which allows them to be auto-completed.
rexin other packages will generate spurious NOTEs from
R CMD checkunless you include a call to
rex::register_shortcuts()with your package name somewhere in your package source. This function registers all of the rex shortcuts as valid variables fixing the NOTEs.