Ruby Regexp methods?
- by fjs6
Is there a gem/example_code that allows to work with regexps?
I am not looking for what a regexp can do, but what can be done to a Regexp object.
For example:
r = Regexp.new(...)
r.min_length => the minimum length of a matching string
r = Regexp.new("car(less)?")
r.min_length => 3 for the string "car"
Thanks!