0.0
No commit activity in last 3 years
No release in over 3 years
The solution to convert a Ruby range to a regexp.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

~> 1.7
~> 10.0
 Project Readme

Transform Ruby ranges to regexps

The solution to convert a numeric Ruby Range to a Regexp

Install

In the system:

gem install range_regexp

or add the gem to the Gemfile:

gem 'range_regexp'

and then run bundle install.

Usage

converter = RangeRegexp::Converter.new(-9..9)
converter.convert # => /-[1-9]|\d/