Registry / utility / to-regexp

to-regexp

JSON →
library0.2.1rbrubygemsunverified

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

gem install to_regexp
INSTALL
IMPORT
SIG · TO-REGEXP
T
to-regexp
utilityrubyv0.2.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

String
require 'to_regexp'

Convert a string to a regular expression

require 'to_regexp' pattern = 'hello.*world'.to_regexp pattern.match('hello beautiful world') # => #<MatchData "hello beautiful world">
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.2.1latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
to-regexp — gem install to-regexp · libregistry