In the string "test <test> test </test> test" i want to match only these occurrences of "es":
"test <test> test </test> test"
Anyone knows how to do this?
This is not the same as as the possible duplicate Regex replace text outside html tags where the result would be
"test <test> test </test> test", as the inner "es" is not getting matched
Update: forgot to mention that <test> should be replaceable with <any stuff="test">...</any> or <testing some="stuff">...</testing>.
JavaScript regex flavor.