Hi,
I have a file with the following:

&&&
TEXT STRING I WANT TO KEEP
###
TEXT STRING I WANT TO DELETE
&&&
TEXT STRING I WANT TO KEEP
etc,
where there is a linebreak after &&&, ###, and all text strings


I need to process this text in two different ways;

1) 
I would like to remove ALL of the following:
###
TEXT STRING I WANT TO DELETE
&&&


So the result is:
TEXT STRING I WANT TO KEEP
TEXT STRING I WANT TO KEEP
TEXT STRING I WANT TO KEEP



2) 
I would like to remove ONLY the following:

###
TEXT STRING I WANT TO DELETE

So the result is:

&&&
TEXT STRING I WANT TO KEEP
&&&
TEXT STRING I WANT TO KEEP
&&&
TEXT STRING I WANT TO KEEP
etc.

Grateful for suggestions on how to do this.
Thank you.

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
"supp...@barebones.com" 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 bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.

Reply via email to