joined:Aug 22, 2005
One of my wordpress site is hacked and in my posts, some links are inserted.
Now if I try to search HREF tag using regular expressions, all the anchor tag around image tag is also getting removed.
So what I want is:
Remove anchor tag which has no image inside: for example
<a href="example.com">any example text</a> This needs to be removed
but this anchor should not be removed: <a href="example.com"><img src=""></a>
I am very bad in RegExp, so can anyone help me.. pls?