ruby-to-regexp

safe way to convert strings to regexps (with options)
  https://github.com/seamusabshere/to_regexp
  0
  no reviews



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.