Regexp.new(string, [options [, kcode]]) â regexpRegexp.new(regexp) â regexpRegexp.compile(string, [options [, kcode]]) â regexpRegexp.compile(regexp) â regexp
Class Public methods
Constructs a new regular expression from pattern, which can be
either a String or a Regexp (in which case that
regexp's options are propagated), and new options may not be specified
(a change as of Ruby 1.8).
If options is a Fixnum, it should be