I am trying to search some text which can search with or without html tag. Have tried with (?!([^<]+)?>)
which is working with content which is outside of html tag.
Regex - (simple html)(?!([^<]+)?>)
Html - This is simple html text <span class='simple'>simple html</span> text simple <p>html</p>
but the content in simple <p>html</p>
is not working.
Please note i am avoiding class='simple'
.