OK, then try this, instead.

###(.|\n)*?&&&

--Kerri

On Fri, May 18, 2018 at 12:17 PM Matthew London <[email protected]> wrote:

> Hi Again,
>
> Turns out there are sometimes multiple lines both within my KEEP text and
> in my DELETE text.
>
> le:
> &&&
> Line or Lines to be KEPT
> ###
> Line or Lines to be DELETED
> &&&
> Line or Lines to be KEPT
> ###
> etc.
>
> Grateful for your help
>
> On Wednesday, May 2, 2018 at 12:51:20 PM UTC-7, Kerri Hicks wrote:
>>
>> Use the Find dialog and turn on the "Grep" switch...
>>
>> 1) I have questions about this one. Are the lines to be kept and the
>> lines to be deleted always alternating? (e.g. there's always one to be
>> kept, always followed by one and only one to be deleted?) If not, I'd
>> probably do this one in two steps (first delete the hash lines and the
>> deletable lines, and then just go through and delete all the ampersands,
>> so, use the same expression as #2, and then do another search and replace
>> for &&&\n). (And I just saw that Sam mentions the same strategy. I started
>> this email an hour ago.)
>>
>> 2) ###\n.*?\n
>>
>>>
>>>
>
>
>
>
> --
> This is the BBEdit Talk public discussion group. If you have a
> feature request or would like to report a problem, please email
> "[email protected]" rather than posting to the group.
> Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
> ---
> You received this message because you are subscribed to the Google Groups
> "BBEdit Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/bbedit.
>

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
"[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/bbedit.

Reply via email to