victorcorey — 2007-11-15T16:22:21-05:00 — #1
I want to change the value of pview. I think I just need some Regular Expression to match the pview=? (any number)
var qs = new String(window.location);
pepejeria — 2007-11-16T09:40:01-05:00 — #2
var reExp = /pview=\\d+/;
var url = window.location.toString();
var newUrl = url.replace(reExp, "pview=" + newValue);
victorcorey — 2007-11-16T11:37:26-05:00 — #3
Worked perfectly. Thank you.
Regular expressions drive me nuts.
pepejeria — 2007-11-16T13:41:34-05:00 — #4
Yes, they can drive u nuts, but they are extremely powerful.
system — 2014-10-07T20:42:09-04:00 — #5
This topic is now closed. New replies are no longer allowed.