I want to extract a query string from my URL using JavaScript, and I want to do a case insensitive comparison for the query string name. Here is what I am doing:
<
modifiers are given as the second parameter:
new RegExp('[\\?&]' + name + '=([^]*)', "i")