Skip to content
Sections
>> Trisquel >> Packages >> nabia >> ruby >> ruby-to-regexp
nabia  ] [  aramo  ]
[ Source: ruby-to-regexp  ]

Package: ruby-to-regexp (0.2.1-2)

safe way to convert strings to regexps (with options)

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.

Other Packages Related to ruby-to-regexp

  • depends
  • recommends
  • suggests
  • dep: ruby
    Interpreter of object-oriented scripting language Ruby (default version)
    or ruby-interpreter
    Package not available

Download ruby-to-regexp

Download for all available architectures
Architecture Package Size Installed Size Files
all 4.5 kB24 kB [list of files]