On 12 Nov 2022, at 16:09, Michael Kocher wrote:

> I'm trying to use a multi-file search and replace using grep. I'm still
> pretty new to grep and BBEdit and could use some help.
>
> I can isolate the text I want to keep using this:
>
> <div class="page-content(?s).*?<div data-analytics-region="prev-next"
>
> Unfortunately, that's the content I want to keep. Is there a way to find
> everything *except* what that line pulls up and delete it?

The "Extract" button might do the job for you here. (Leave the "Replace" field 
blank.)

R.

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "[email protected]" rather than 
posting here. Follow @bbedit on Twitter: <https://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 view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/74145F4E-9B7E-4C12-8119-633FFACD3AC5%40barebones.com.

Reply via email to