Question : more jscript regex strip string help

Strip "SetLock=1" from a string

Lets says I have:

page.asp?action=update&id=21&SetLock=1&fruit=orange

How do I strip out "SetLock=1" from this string?

Answer : more jscript regex strip string help

what about:

var s = "page.asp?action=update&id=21&SetLock=1&fruit=orange";
s = s.replace(/SetLock=1/, "");
Random Solutions  
 
programming4us programming4us