Regular expression literals are objects of type
Regexp
. They can
be created by explicitly calling the
Regexp.new
constructor, or
by using the literal forms, /
pattern/ and
%r{
pattern
}
. The
%r
construct is
a form of general delimited input (described
on pages 200--201).
/pattern/
/pattern/options
%r{pattern}
%r{pattern}options
Regexp.new( 'pattern' [, options
] )
|