I need to replace a number in a string
str = "http://www.example.com ?test=1&cat=0&r ef=123213123213 ";
I want to replace the 0 after the cat= part with a new number. 0 could
be any number though so i need to use a reg exp to replace it.
str = str.replace(??? ???,newnumber);
I need help with the ?????? part :>
Any help is greatly appreciated.
Thx!
str = "http://www.example.com ?test=1&cat=0&r ef=123213123213 ";
I want to replace the 0 after the cat= part with a new number. 0 could
be any number though so i need to use a reg exp to replace it.
str = str.replace(??? ???,newnumber);
I need help with the ?????? part :>
Any help is greatly appreciated.
Thx!
Comment