Re:In search of the perfect URL validation regex (2010)
by chrismorgan on Saturday September 25, 2021 @02:21PM
(#28655081)
Match groups so you can split it up into scheme, username, password, host, port, path, query, fragment. Not difficult to approximate, though for best results with diverse schemes you’d want an engine that allows repeated named groups, and I don’t know if any do (JavaScript and Python don’t).
[ Parent
| on HN ]
Re:In search of the perfect URL validation regex (2010)
by powersnail on Saturday September 25, 2021 @02:34PM
(#28655170)
Python's `regex` package does allow repeated named group.