News for hackers. Stuff that matters.
Re:In search of the perfect URL validation regex by DanBlake on Sunday June 22, 2014 @04:13PM (#7929030)
Yep.

I should mention that 99.9% of domains will fall into standard form ( handle.domain or ip.ip.ip.ip )

As such, You are definitely more likely to let a user enter a bad URL they did not intend because it validates then to let a uncommon domain actually be used.

As such- a much simpler regex would likely 'make more people happy' than being 100% correct to tech spec.

There are no comments on this comment yet.