Learn R Programming

⚠️There's a newer version (1.1.0) of this package.Take me there.

regexr (version 1.0.2)

Readable Regular Expressions

Description

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.

Copy Link

Version

Install

install.packages('regexr')

Monthly Downloads

9

Version

1.0.2

License

GPL-2

Maintainer

Tyler Rinker

Last Published

January 11th, 2015

Functions in regexr (1.0.2)

get_construct

Extract Script from reverse_construct to construct a regexr Object.
print.summary_regexr

Prints a summary_regexr object
as.regexr

Generic Method to Coerce to regexr
construct

Construct Human Readable Regular Expressions
as.regexr.default

Coerce default to regexr
comments

Get/Set Comments From a regexr Object
unglue

Get Sub-expressions from regexr Object
as.regexr.character

Coerce character to regexr
set_names

Set the Names in a regexr Object
subs

Get/Set Regex Sub-expressions From a regexr Object
subs.regexr

Get Sub-expressions From a regexr Object
names<-.regexr

Set Names of a Sub-expressions of a regexr Object
print.unglued

Prints an unglued object
comments.regexr

Extract Comments From regexr Object
regexr

regexr: Tools for Human Readable Regular Expressions
test

Test Regular Expression Validity
print.regexr

Prints a regexr Object
get_construct.reverse_construct

Extract Script from reverse_construct to construct a regexr Object.
print.subcom

Prints a subcom object
test.regexr

Test Regular Expression Validity
subs<-.regexr

Set Regex Sub-expressions From a regexr Object
summary.regexr

Summarize a regexr Object
names.regexr

Get Names of Sub-Expressions of a regexr Object
%:)%

Add Comments to Character Strings.
print.reverse_construct

Prints a reverse_construct object
comments<-.regexr

Set Comments For regexr
unglue.regexr

Unglue regexr Object