REGEX - How do I search for expressions that DO NOT contain a specific part?

0

I'm working with PL / SQL.

Through REGEX, how do I find all expressions that are different from:

 <cod_orgao_destino>9577</cod_orgao_destino>

Thank you!

    
asked by anonymous 11.06.2018 / 21:59

1 answer

0

It is possible thanks to the negative lookahead ("I do not know how to translate this)" (?! abc)!

You can accomplish this by using this expression:

^((?!<cod_orgao_destino>9577<\/cod_orgao_destino>).)*$

I found a place explaining in detail: Here

    
14.06.2018 / 22:01