U:RDoc::AnyMethod[iI" to_s:ETI"Regexp#to_s;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"SReturns a string containing the regular expression and its options (using the ;TI"M(?opts:source)
notation. This string can be fed back in to ;TI"QRegexp::new
to a regular expression with the same semantics as ;TI"Mthe original. (However, Regexp#==
may not return true when ;TI"Kcomparing the two, as the source of the regular expression itself may ;TI"Ldiffer, as the example shows). Regexp#inspect
produces a ;TI"3generally more readable version of rxp.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"*r1 = /ab+c/ix #=> /ab+c/ix
;TI"0s1 = r1.to_s #=> "(?ix-m:ab+c)"
;TI"0r2 = Regexp.new(s1) #=> /(?ix-m:ab+c)/
;TI"'r1 == r2 #=> false
;TI"(r1.source #=> "ab+c"
;TI"/r2.source #=> "(?ix-m:ab+c)";T:@format0:
@fileI" re.c;T:0@omit_headings_from_table_of_contents_below0I"rxp.to_s -> str
;T0[ I"();T@FI"Regexp;TcRDoc::NormalClass00