Remove string using regular expression

Remove string using regular expression

Hello there!
I have function:
Copy code
  1.     function Dummy(){
  2.       adress = window.location.href;
  3.       regex = "/^&(.*?)?$/";
  4.       adress = adress.replace(regex,'');
  5.       alert(adress);
  6.     }
I want to remove all parameters, but first. I don't know what's wrong .. :-(