Let's say we have something like:
&firstString=someText&endString=OtherText
And I would like to replace "someText" with something else. What is the best way to do this considering the fact that I do not know what someText might be (any string) and all I know is that it will be surrounded with &firstString= and &endString=
Edit: sorry looks like this is not clear enough. I do not know what "someText" might be, the only information I have is that it will be between &firstString= and &endString=
I was thinking about using split multiple times but it sounded ugly ..