I need to parse url in JavaScript.
Here is my code:
var myRe = /\\?*([^=]*)=([^&]*)/; var myArray = myRe.exec(\"?page=3&Name=Alex\"); for(var i
var qs="da?page=3&page=4&Name=&xxx=43&page=adasdsadsa"; var params=qs.replace(/^.*\??/g,'').replace(/#.*/g,'').match(/[^&\?]+/g); var args={}; if(params)for(var i=0;i