News for hackers. Stuff that matters.
Re:In search of the perfect URL validation regex by cobalt on Sunday June 22, 2014 @08:39PM (#7929666)
What's wrong with /([\w-]+:\/\/[^\s]+)/gi

It's not fancy but it will essentially match any url

Re:In search of the perfect URL validation regex by zAy0LfpBZLC8mAC on Sunday June 22, 2014 @10:21PM (#7929891)
/./ will also match any URL. The point is to reject non-URLs.
Re:In search of the perfect URL validation regex by mathias on Monday June 23, 2014 @03:07AM (#7930607)
Yes, to reject non-URLs and also some URLs that are technically valid but that I want to explicitly disallow anyway.