4 ms·
> using regexp to parse the URL A while back I whipped this up: https://gist.github.com/pmarreck/2956396 https://gist.github.com/pmarreck/2956396 which seemed
by pmarreck 10y ago
> using regexp to parse the URL
A while back I whipped this up: https://gist.github.com/pmarreck/2956396 https://gist.github.com/pmarreck/2956396
which seemed to work well (although it was a bit slower, I probably didn't know about exponential backtracking at the time and that could probably be revisited). It won't gather multiple name/value pairs though, but it will cut out and name basically every other part of the URL.