This is my regex
(? [^>] + [& ;])? / (?! ) (?: | )
That's an example
<r> this is text which I do not want <a> This is what I want!<br>
I just want to discard the text between '>' and '<br or p'
This regular expression works exactly the way I want, but I understand that it takes too much time.
I ran this in the regex debugger, and it took over 800 steps to validate the wrong sentence.
how can i fix this?
source
share