regexr: regexr: Tools for Human Readable Regular Expressions



regexr is an R framework for constructing and managing human readable regular expressions. It aims to provide tools that enable the user to write regular expressions in a way that is similar to the ways R code is written. The tools allow the user to:

  1. Write in smaller, modular, named, sub-expressions

  2. Write top to bottom, rather than a single string

  3. Comment individual sub-expressions

  4. Indent expressions to represent regular expression groups

  5. Add vertical line spaces and R comments (i.e., #)

  6. Test the validity of the concatenated expression and the modular sub-expressions

This framework harnesses the power and flexibility of regular expressions but provides a structural frame that is more consistent with both code writing and natural language conventions.

regexr documentation built on May 19, 2017, 3:50 p.m.

Search within the regexr package
Search all R packages, documentation and source code