Let's say I have a regex foobar expression, and I want to find all the lines in the document that do not match foobar. I can do it? How can I do it?
^(?!.*foobar.*).+$
With a multi-line option, matches an entire line that does not contain foobar.
The regular expression for your case might be this
^((?!foobar))$
edited by:
but if you want only grep then you can use the -v option:
grep -v foobar
Source: https://habr.com/ru/post/1346776/More articles:Is it possible to “see” a C # foreach loop in an iterative collection during debugging? - debuggingMoving a method from one file to another while saving its history - version-controlWCF and DTO size - c #https://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1346774/created-an-exe-with-py2exe-but-when-i-copy-paste-from-dist-folder-to-desktop-doesnt-run-properly&usg=ALkJrhjSbF8GInSxiBJ-OahEZuvhHY1QFAMaven How to break backward compatibility? - javaExtremely slow hide / show performance when working with a large number of items - performanceSocial Network Puzzle - algorithmEC2 Windows - get admin password - javamsbuild script using solution information - visual-studio-2010Finding the total volume of two overlapping cuboids - algorithmAll Articles