On Wed, Oct 31, 2007 at 05:07:44AM +0100, Fred Appelman wrote: > Gary Franks schreef: > >I am new to grep and loving what I can do with it. Of course, until I > >get stumped. > >I can't find in the BBEdit Grep help how to exclude a word. > >I am trying to find all lines in a document that do not include the > >word "foo". > > > There is no regular expression to do what you describe.
Well, that's not quite true: ^(?:(?!foo).)*$ Nonetheless, it's easier to use Process Lines Containing, which has an option to behave just like `grep -v`. Ronald -- ------------------------------------------------------------------ Have a feature request? Not sure the software's working correctly? If so, please send mail to <[EMAIL PROTECTED]>, not to the list. List FAQ: <http://www.barebones.com/support/lists/bbedit_talk.shtml> List archives: <http://www.listsearch.com/BBEditTalk.lasso> To unsubscribe, send mail to: <[EMAIL PROTECTED]>
