Thanks Ronald.
That is exactly what I needed. Works great.
I'll break down the grep and try to understand what you wrote.
"Process Lines" wouldn't work for me because I can only save, copy, etc.
I want to insert at each line and then edit my insertion.
Thanks to all who replied.
Gary

From: Ronald J Kimball <[EMAIL PROTECTED]>
Date: October 31, 2007 9:04:28 AM CDT
Subject: Re: grep help


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]>

Reply via email to