I have to replace the following in a NSURL:
a_token=lksjadfkj%2gf98273984
with
a_token=new_token
a token can be in the follwing forms:
a_token=989asaofiusaodifusa9f789asdofu&lat=43.3
a_token=lksjadfkj%2gf98273984
So it either ends with & or end line/nothing.
How could I write the regex expression for it?
Thanks!