that's exactly what I was looking for, but my regex sucks, so I took the easy way out.
what regex can I use that will match blah=9999999999 (i.e. blah= followed by 10 integers)
That won't work... it would only replace blah=, and the not the value of it.
this worked:
$text = "http://www.google.com/search?hl=en&blah=0123456789&safe=off&client=firefox-a&rls=org.mozilla%3Aen-US%3Aofficial&hs=cf";
$InjectedValue = "999999999"...
having a difficult time with this.. wondering if anyone here can help.
Let's say I have the following URL string:
http://www.google.com/search?hl=en&blah=0123456789&safe=off&client=firefox-a&rls=org.mozilla%3Aen-US%3Aofficial&hs=cf
I need to replace the value of blah, blah is always 10...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.