I have a string that contains a value that looks like this.
somevalueshere=123&page=3&someothervalues=123
and I want to replace the number 3 with 1.
So it would look like page=1
The number is always a positive whole number like 1,2,3,4,5,6,7
All I have so far is
.replace("page=" + 'some number reg ex here', "page=1")