I just want to match & in the url but not the xml entities like &< etc.
<a href="/test/test2">Contact Us</a>
<a href="http://www.testassociation.com/test.html?ab=5&cd=5&ab=c" target="_blank">Customer Association</a>&
http://www.testassociation.com/test.html?ab=5&cd=5&ab=c
I want to replace the &
with &
but not disturb the other entities.
Sorry I am not getting idea how to do it.
I tried this:
(&)([a-z][^;]*)
Is there a better way.