If I have the following string:
var str = "Test.aspx?ID=11&clicked=false+5+3";
str = str.replace(????????, 'true');
How can I replace the substring "false+5+3" with "true" using REGEX?
Thanks in advance!!!
str = str.replace(/false\+5\+3/, 'true');
You need to escape the +
since it means something special in regex.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With