Hi,
I've searched these forums for answers to this, but unfourtunately haven't found anything that directly answers my question.
We need to append a parameter to all urls from a specific domain. This is for email newsletters so it is being achieved using find and replace in a text editor. We currently use the following expression:
Find - (http.+example.com.+\?.+?)(")
Replace - \1&id=1234\2
This works to append a parameter to a url string that already has other parameters. e.g.
http://www.example.com?param=first
converts to
http://www.example.com?param=first&id=1234
Is there a way we can construct an expression that will append a parameter to any url, but will maintain the correct syntax. For example:
http://www.example.com
converts to
http://www.example.com?id=1234
AND
http://www.example.com?param=first
converts to
http://www.example.com?param=first&id=1234
I hope that makes sense.
Thanks for any help
Rich