Hi Bill Michael said above that he has 1000s of files so needs to alter each file, not extract into one file. ;-)
On Mon, 14 Nov 2022 at 16:22, 'Bill Walker' via BBEdit Talk < [email protected]> wrote: > Micheal, > > > The Find options have an Extract button. I think that will do what you > want. > > [email protected] > > > On Nov 12, 2022, at 4:12 PM, Michael Kocher <[email protected]> wrote: > > The problem with Extract is that it makes a new file, and I have a > thousands of files. Is there a way to do it within the original file? > > On Saturday, November 12, 2022 at 3:23:13 PM UTC-6 [email protected] > wrote: > >> 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/d73aa5e5-11e5-4b3f-9bc8-30de68e2ccd2n%40googlegroups.com > <https://groups.google.com/d/msgid/bbedit/d73aa5e5-11e5-4b3f-9bc8-30de68e2ccd2n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > > -- > 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/15502A52-87C7-4F9B-9AC1-A15505D21CE7%40yahoo.com > <https://groups.google.com/d/msgid/bbedit/15502A52-87C7-4F9B-9AC1-A15505D21CE7%40yahoo.com?utm_medium=email&utm_source=footer> > . > -- Kaveh Bazargan PhD Director River Valley Technologies <http://rivervalley.io> ● Twitter <https://twitter.com/rivervalley1000> ● LinkedIn <https://www.linkedin.com/in/bazargankaveh/> ● ORCID <https://orcid.org/0000-0002-1414-9098> *Accelerating the Communication of Research* -- 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/CAJ2R9phDUo59WDimWM8setm%3DUxCFHBwq2QJo9t9uGPzz2gqvLg%40mail.gmail.com.
