Readable Regular Expressions
Overview
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 chunks, (4) indent expressions to clearly present regular expression groups, (5) add vertical line spaces and R comments (i.e., #), and (6) test the validity of the concatenated expression and the modular sub-expressions.
CHANGES
as.regexno longer converts character strings roregexclass. This is because the function used 'http://rick.measham.id.au/paste/explain'; for parsing, however this website appears not to be operational. This functionality may return if the website is again available or if a suitable replacement regex parser is found. If you have a suggested web based parser please make a suggestion via: https://github.com/trinker/regexr/issues.
From NEWS in the release
Install
Health
CRAN check results are not tracked yet.
Documentation
- Help pages
- 27includes a package overview page
- Examples that run
- 78%7 run in a plain check · 2 never run
- Exported functions with examples
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 0%
Downloads
Dependencies
Code & Tests
People & History
Pick two releases to compare their code metrics.
- RR 3.5.0 released · 2018-04-23
- archivedRemoved from CRAN2018-04-22requested by the maintainer <tyler.rinker@gmail.com>
- RR 3.4.0 released · 2017-04-21
- RR 3.3.0 released · 2016-05-03
- 1.1.02015-08-16 · diff ↗
- RR 3.2.0 released · 2015-04-16
- 1.0.22014-04-19 · diff ↗ ·
removed 2 exports
regex<-, regexadded 7 exports
subs<-, as.regexr, get_construct, set_comments, set_names, set_subs, subs - 0.0.22014-04-19
- RR 3.1.0 released · 2014-04-10
Package metadata
- First published
- 2014-04-19
- Total releases
- 3 / 12 yrs
- License
- GPL-2 OSI
- Minimum R
- ≥ 3.1.0
Cite
Cite this package
Run in R for the authors' entry:
citation("regexr")The package provides a citation file, so citation() returns the authors' own entry.
It points to 10.5281/zenodo.13496.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-26, which the citation names so these numbers can be found later. More on citing and the projects behind them.