Build regular expressions piece by piece using human readable code. This package contains number-related functionality, and is primarily intended to be used by package developers.
This package contains number-related functionality for the rebus package. It is primarily intended for other R package developers. For interactive use, try rebus instead.
Regular expressions are a very powerful tool, but the syntax is terse enough to be difficult to read. This makes bugs easy to introduce and hard to find. This package contains functions to make building regular expressions easier.
To install the stable version, type:
To install the development version, you first need the devtools package.
Then you can install the rebus.numbers package using
number_range creates a regex that matches a range of integers. For example,
number_range(-12, 123) generates
roman generates a regex to match roman numerals, and
ROMAN provides the constant form. For example
roman(2, 3) matches two or three roman numbers.