ruby-to-regexp

safe way to convert strings to regexps (with options)

Description

Provides String#to_regexp, for example if you want to make regexps out of a CSV you just imported.

Some features:
 - You can also treat strings as literal regexps.
 - If you need case insensitivity and you're using :literal, pass options
   like :ignore_case.
 - You can get the options passed to Regexp.new with #as_regexp.
 - Finally, you can be more lazy using :detect.

Upload more screenshots

Please help extend the collection of screenshots. Just make a screenshot and upload it here. You don't need to register or anything.

Upload a screenshot

Hint: upload an image here from your clipboard with Ctrl-V


Homepage

https://github.com/seamusabshere/to_regexp


Install this software package

If the package is available for the distribution you are currently using on your computer then install the software by clicking on…

Install ruby-to-regexp