I'm trying to match words with regex outside <a></a>
and <img />
tags
I have the folowing code that only matches the string outside all tags
/test(?!.*<\/)/g
The test string between the a tags should not match the second two sould
<a>test</a> test lorem test
any ideas?