swazz99jhb
Well-Known Member
Hi
I need to Identify and replace a string using RegEx.
So anywhere in the CONTENT I need to find the string "comment" then find the matching < and > sign and replace everything including the signs with spaces.
String is
Changed to:
Any ideas?
Thanks
I need to Identify and replace a string using RegEx.
So anywhere in the CONTENT I need to find the string "comment" then find the matching < and > sign and replace everything including the signs with spaces.
String is
Code:
<a>sample</a><img src="http://icon_comment.gif" alt="This post has 1 comments." title="This post has 1 comments."/><a rel="nofollow" target="_blank" href="http://examples.org/user/example">
Changed to:
Code:
</a><a rel="nofollow" target="_blank" href="http://examples.org/user/example">
Any ideas?
Thanks
Last edited: