Ideally it would be great to delete all other content from each existing file.
On Friday, 26 April 2019 14:59:34 UTC-4, Patrick Woolsey wrote: > > On 4/26/19 at 2:40 PM, [email protected] <javascript:> (Phil Emery) > wrote: > > >I have a folder full of html pages (.html). Each file has a lot > >of stuff we don't need. Every page has content within a div > >called "main-content". The only stuff we need is within that div. > > > >I'm pretty sure that via some fancy Grep-ing it could delete > >everything out of those files EXCEPT what's contained within > >the "main-content" div. But I can't figure it out. > > > To help define the scope of the task: > > Do you need to delete all the other content from each existing > file, or would you instead be satisfied to extract the contents > of every such div for use elsewhere? > > > Regards, > > Patrick Woolsey > == > Bare Bones Software, Inc. <https://www.barebones.com/> > > -- 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 to the group. Follow @bbedit on Twitter: <https://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.
