I need a little help. I already tried to practice in several ways, but it didn't work as expected. For example, this one.
I want to match all single words except the pattern <br> in JS.
So I tried
(?!<br>)[\s\S]
(?!<|b|r|>)[\s\S]
The problem I have is, in the ?! quote, it's matching either the first word, < only, not the entire pattern <br>. In reverse, just <br> can match all <br> expect any other words. How can I let it know I want to match the entire word in the ?! quote?
Thank you so much!
/g, '');` ? – Washington Guedes May 16 '17 at 23:04
– Micah May 16 '17 at 23:05
. https://regex101.com/r/vEVgtM/1/ – Micah May 16 '17 at 23:07
, I need to spend time to learn how this work. Ty so much. – Micah May 16 '17 at 23:14