{"id":79898,"library":"to-regexp","title":"To Regexp","description":"Provides String#to_regexp, for example if you want to make regexps out of a CSV you just imported.","status":"active","version":"0.2.1","language":"ruby","source_language":null,"source_url":"https://github.com/seamusabshere/to_regexp","tags":["string","regexp","utility"],"install":[{"cmd":"gem install to_regexp","lang":"bash","label":"gem install"},{"cmd":"# Gemfile\ngem 'to_regexp', '~> 0.2.1'","lang":"ruby","label":"Gemfile"}],"dependencies":[],"imports":[{"symbol":"String","correct":"require 'to_regexp'"}],"quickstart":{"code":"require 'to_regexp'\n\npattern = 'hello.*world'.to_regexp\npattern.match('hello beautiful world') # => #<MatchData \"hello beautiful world\">","lang":"ruby","description":"Convert a string to a regular expression"},"warnings":[],"env_vars":null,"search_vec":"'csv':18 'exampl':8 'import':21 'make':13 'provid':3 'regexp':2,6,14,23 'string':4,22 'util':24 'want':11","created_at":"2026-06-18T05:05:58.203717+00:00","updated_at":"2026-06-18T05:05:58.203717+00:00","problems":[],"ecosystem":"rubygems","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/seamusabshere/to_regexp","github":"https://github.com/seamusabshere/to_regexp","docs":"http://www.rubydoc.info/gems/to_regexp/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["utility"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-18","next_check":"2026-12-15","install_tag":null}}