I'm really trying to figure out how to write a preg_replace for this string...
/url/?12345678910&stackoverflow=rocks
...which I want to become...
/url/?_uniqueId_&stackoverflow=rocks
The string contains more ?s and &s, however this is the first occurance of the characters in the string.
I've tried the following, but it doesn't even give me a response:
preg_replace("/\/url\/\?[^)]+\&/","_uniqueId_",$link);
Any help would be greatly appreaciated.