Match text outside html tags without use look behind regex in javascript

18 Views Asked by At

I have this expression to get the matched word outside an HTML tag like this, but it does not work in Safari.\ It gives me a negative look behind the error.

 const regex = new RegExp(`((?!<[^>]*)send(?<![^>]*<))`,'gi');  => /((?!<[^>]*)send(?<![^>]*<))/gi

There is an alternative to archive the same result?

0

There are 0 best solutions below