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.

Want to suggest features or report bugs for Use the GitHub issue tracker. Vote for new features on Trello.

comments powered by Disqus