2 ms·
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 wi
by chrismorgan 5y 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).
- powersnail 5y agoPython's `regex` package does allow repeated named group.
- elif 5y agoI mean ya that would match a query string, but it wouldn't parse it?