News for hackers. Stuff that matters.
Re:A Liberal, Accurate Regex Pattern for Matching URLs by ehsanul on Friday November 27, 2009 @09:07PM (#964698)
Well, with URI.parse, you can send in a ftp uri, or just "something.com" (which is parsed as just a path). So not really what I need from URL validation. If there's something else I'm missing, I'm happy to know.

Edit: And btw, for an industrial-strength Ruby URI library (to replace the standard library), check out Addressable: http://addressable.rubyforge.org/

Re:A Liberal, Accurate Regex Pattern for Matching URLs by riffraff on Saturday November 28, 2009 @04:14AM (#964978)
try URI.regexp('http') :)