Repository URL to install this package:
|
Version:
2.2.2-1 ▾
|
U:RDoc::AnyMethod[iI"new:ETI"Regexp::new;TT:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"OConstructs a new regular expression from +pattern+, which can be either a ;TI"NString or a Regexp (in which case that regexp's options are propagated), ;TI"Dand new options may not be specified (a change as of Ruby 1.8).;To:RDoc::Markup::BlankLine o;
; [ I"IIf +options+ is a Fixnum, it should be one or more of the constants ;TI"BRegexp::EXTENDED, Regexp::IGNORECASE, and Regexp::MULTILINE, ;TI"><em>or</em>-ed together. Otherwise, if +options+ is not ;TI";+nil+ or +false+, the regexp will be case insensitive.;T@o;
; [I"KWhen the +kcode+ parameter is `n' or `N' sets the regexp no encoding. ;TI"4It means that the regexp is for binary strings.;T@o:RDoc::Markup::Verbatim; [ I"9r1 = Regexp.new('^a-z+:\\s+\w+') #=> /^a-z+:\s+\w+/
;TI"1r2 = Regexp.new('cat', true) #=> /cat/i
;TI"1r3 = Regexp.new(r2) #=> /cat/i
;TI"Nr4 = Regexp.new('dog', Regexp::EXTENDED | Regexp::IGNORECASE) #=> /dog/ix;T:@format0:
@fileI" re.c;T:0@omit_headings_from_table_of_contents_below0I"âRegexp.new(string, [options [, kcode]]) -> regexp
Regexp.new(regexp) -> regexp
Regexp.compile(string, [options [, kcode]]) -> regexp
Regexp.compile(regexp) -> regexp
;T0[ I"(*args);T@!FI"Regexp;TcRDoc::NormalClass00