Re: URI

Robert Walker
Fri, 05 Oct 2012 13:09:48 -0000

BalaRaju Vankala wrote in post #1078613:
> Hello Every One
>                 Can any one Explain URI::Regexp in Rails . I found one
> thing for validation of website URI::Regexp(%w(http https))
>                 please Explain what i URI

That expression simply matches URIs with either the http or https
scheme:

http://www.example.com -- matches
https://www.example.com -- matches
ftp://www.example.com -- does not match

http://stdlib.rubyonrails.org/libdoc/uri/rdoc/classes/URI.html#M009247

--
Posted via http://www.ruby-forum.com/.