4 ms·
Seems like the real problem is using a regex to parse a URL instead of using a URL parser!
by AaronFriel 7y ago
Seems like the real problem is using a regex to parse a URL instead of using a URL parser!
- dgoldstein0 7y ago... this was within a url parsing library, if I understood correctly? Either way, urls need to be parsed somehow, and using a regex is a reasonable strategy (urls are a regular language) for implementing a url parsing library.
- rasz 7y agonew URL("https://user:pass@xdavidhu.me\\test.corp.google.com:8080/path/to/something?param=value#hash")
- cesarb 7y agoAccording to https://developer.mozilla.org/en-US/docs/Web/API/URL https://developer.mozilla.org/en-US/docs/Web/API/URL that works everywhere except on Internet Explorer, so keeping with the theme of the original comment, we can blame Windows again.