Skip to content Skip to sidebar Skip to footer

Regex Not Operation

I have condition where I have to select anything which is not part of span tag. Input - the PISTON has their

Solution 1:

You can use this:

((?:(?![^<>]*(?:>))[^<](?![^<>]*</))+)

regex101 demo

It will match any text not inside or between opening and closing tags. There's a breakdown of the regex in the demo.

Post a Comment for "Regex Not Operation"