Releases will be numbered with the following semantic versioning format:
<major>.<minor>.<patch>
And constructed with the following guidelines:
BUG FIXES
NEW FEATURES
MINOR FEATURES
IMPROVEMENTS
CHANGES
The regex
function has been removed (not Deprecated
) as regexr is in beta
mode. This move breaks backward compatibility and thus a bump in major release
to version 1.0.0.
CHANGES
regex
function replaced with the subs
function. This move is both
semantic and pragmatic. The term "regular expression chunk" has been
replaced with "sub-expressions". The subs
function reflects the semantic
change. Additionally, Richie Cotton's regex package
(https://github.com/richierocks/regex), which is complementary to regexr,
contains a regex
function.
The regex
class (created from adding a comment to a string) has been
replaced with the subcom
(sub-expression commented) class. This name is
more informative and avoids conflicts with other regex packages that may
contain a regex
class.
NEW FEATURES
as.regexr
added to coerce a regular expression to a regexr
class using
the regular expression breakdown of http://rick.measham.id.au/paste/explain.pl.
The get_construct
function extracts a script to create a construct
regex
from regexr
objects that were coerced using as.regexr
.MINOR FEATURES
set_comments
, set_regex
, and set_names
added as a convenience functions
to set elements of a regexr
object and return the object.IMPROVEMENTS
print.summary_regexr
used message
to print to the console which had the
potential to not return the entire input. print.summary_regexr
now uses
cat
rather than message
. CHANGES
construct
code is no longer a separate
line for each regular expression chunk's name, regex, and comment but
name, regex, and comment all go on the same line. This makes the code
less cluttered and easier to navigate, particularity if indentation is used to
indicate nested grouping structures. Users may choose whatever configuration
that suits their preference, however, examples will generally be shown via the
new recommended, single line, structure. regexr is an R framework for constructing 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, regular expression chunks, (2) write top to bottom, rather than a single string (3) comment individual chunks, (4) indent expressions to represent regular expression groups, and (5) test the validity of the concatenated expression and the modular chunks.
This framework harnesses the power and flexibility of regular expressions but provides a structural frame that is more consistent with both coding writing and natural language conventions.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.