Hacker News new | ask | show | jobs
by chrismorgan 1726 days ago
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).
2 comments

Python's `regex` package does allow repeated named group.
I mean ya that would match a query string, but it wouldn't parse it?