I have a working regex:
~<([A-Za-z_\-]+)[^>]*>(*SKIP)(*F)|([A-Za-z0-9<>:\[\]\s]|^|\n)text([A-Za-z0-9<>:\[\]\s]|$|\n)~sig
Now, I want to match wanna_match_this
in <blockquote>wanna_match_this</blockquote>
and I am trying to fix this:
<([A-Za-z_\-]+)[^>]*>(*SKIP)(*F)|([A-Za-z0-9<>:\[\]\s]|^|\n)wanna_match_this([A-Za-z0-9<>:\[\]\s]|$|\n)
It should match wanna_match_this
in <blockquote>wanna_match_this</blockquote>
, but it does not.
This one matches but I need the other one that is more precise.