Have you ever needed to get query string values using JavaScript? This task is usually a painful split, split, split, iterate, indexOf hack that is really slow and terribly ugly to look at. It also tends to pile up lines of code really fast. Here is a really sweet way to parse the query string into a JavaScript object with two lines of code using regular expressions to populate an object. I discov
![JavaScript regex trick: Parse a query string into an object « Steven Benner’s Blog](https://cdn-ak-scissors.b.st-hatena.com/image/square/f59d9cf74dcfc26137e36f0467ee87092947b5b3/height=288;version=1;width=512/https%3A%2F%2Fstatic.stevenbenner.name%2Fwp-content%2Fuploads%2Fjs_qs_code.png)