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