Re:In search of the perfect URL validation regex (2010)
by dmix on Saturday September 25, 2021 @02:10PM
(#28655008)
@stephenhay seems to be the winner here if you don't need IP addresses (or weird dashed URLS). It's only 38 characters long and easy to understand.
The simpler the better, if you're going to use something that is not ideal.
[ Parent
| on HN ]
Re:In search of the perfect URL validation regex (2010)
by loloquwowndueo on Saturday September 25, 2021 @03:47PM
(#28655705)
Doesn’t cover mailto: which is fairly common. To be pedantic/strict, mailto: are URIs not URLs.