Match pattern foo
but not incase if it occurs after pattern bar
. Basically given a string,I am "trying" to match opening tag <
any string>
and the match should not occur if it is after closing tag </
any string>
.
Note : I am "trying" some approach like this to solve, this might not be the actual path to the solution. I would be happy if you can help with current issue.
So it should match:
<h1>
in <h1>
<h1>
in <h1> abc </h1>
<abc>
in <abc>something</cde><efg>
<abc>
in something<abc>something
Should not match anything in:
</h1>
</abc> one two three <abc> five six <abc>
one two three </abc> five six <abc>