I need to replace text like this: > here is text
to something
But my regexp replace HTML tags too: <div class="class">text</div>
result is <div class="class" something text </div something
regexp: \>(?=(.*?))
I tried to except HTML tag with negative lookbehind: (?<!.+\<)\>(?=(.*?))
but it doesn't work.
How to fix it?
Thanks in advance!