Learn R Programming

regexr (version 1.0.2)

regexr: regexr: Tools for Human Readable Regular Expressions

Description

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 individualsub-expressions
  4. Indent expressions to represent regular expression groups
  5. Add vertical line spaces and R comments (i.e.,#)
  6. Test the validity of theconcatenated expressionand 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.

Arguments