Possible duplicate:Java \ Pattern - how to write a pattern that checks for a missing string?
How can I match all strings without the word "authorize" in them through regular expressions? I tried *(authorize){0}* no avail.
*(authorize){0}*
/^(?!.*authorize).*/
A negative lookup is used here to ensure that the generic pattern will only match if the "authorize" expression cannot match anywhere in the input file.
Source: https://habr.com/ru/post/1314746/More articles:javascript reflection: get variables - javascriptAny JavaScript library that makes a CSS3 / HTML5 site work in all browsers, including IE6-8? - javascriptVirtual attributes in rail model - ruby | fooobar.comHow can I replicate the functionality of a C # 'using' statement in Java? - javagcc fvisibility at compile time or link time - c ++Custom iPhone Fonts with Font Case - iosJDOM, XPath and namespace interactions - javaJava \ Pattern - how to write a pattern that checks for a missing string? - javaHow can I check if each substring of four zeros is followed by at least four of them using regular expressions? - regexWhy is regex negation required? - regexAll Articles