File: //usr/share/ri/3.0.0/system/URI/regexp-c.ri
U:RDoc::AnyMethod[iI"regexp:ETI"URI::regexp;TT:publico:RDoc::Markup::Document:@parts[S:RDoc::Markup::Heading:
leveli: textI"
Synopsis;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I""URI::regexp([match_schemes])
;T:@format0S;
;i;I" Args;T@
o:RDoc::Markup::List:
@type: NOTE:@items[o:RDoc::Markup::ListItem:@label[I"+match_schemes+;T; [o:RDoc::Markup::Paragraph; [I"BArray of schemes. If given, resulting regexp matches to URIs ;TI".whose scheme is one of the match_schemes.;T@
S;
;i;I"Description;T@
o;; [I"@Returns a Regexp object which matches to URI-like strings. ;TI"BThe Regexp object returned by this method includes arbitrary ;TI"Fnumber of capture group (parentheses). Never rely on its number.;T@
S;
;i;I"
Usage;T@
o;; [I"require 'uri'
;TI"
;TI"*# extract first URI from html_string
;TI"#html_string.slice(URI.regexp)
;TI"
;TI"# remove ftp URIs
;TI".html_string.sub(URI.regexp(['ftp']), '')
;TI"
;TI"8# You should not rely on the number of parentheses
;TI"0html_string.scan(URI.regexp) do |*matches|
;TI" p $&
;TI"end;T;0:
@fileI"lib/uri/common.rb;T:0@omit_headings_from_table_of_contents_below000[ I"(schemes = nil);T@4FI"URI;TcRDoc::NormalModule00