Another manual method that I use a lot for this sort of thing: First copy-paste the whole doc into a new window. Search and replace all the EOL characters so you've got one big line. Search and replace "<p itemprop="articleBody">" with "\n000 target: " Search and replace "</p>" with "\n" Select "Process Lines Containing", finding lines containing "000 target: ", copying lines to new document. In that new document, search and replace the "000 target: " with "". Now your new document should contain just the stuff you want.
When I type it out like this it seems like a lot of work, but it's really not. Chaz Larson - [email protected] On Sun, May 26, 2013 at 11:05 AM, Marshall Clow <[email protected]> wrote: > On May 25, 2013, at 1:13 PM, Rob Lewis <[email protected]> wrote: > > > Never tried any of BBEdit's fancier features. What would be the best way > to take a file of HTML and extract just the code between the following tag > pairs: > > > > <p itemprop="articleBody"> and </p> > > > > There may be multiple blocks like this in the file. > > Obviously, you want an automated way to do this - but here's a manual one. > > Search for "<p itemprop="articleBody">". > Make sure it's at the start of a line (insert a NL before it if necessary). > Click on the "disclosure triangle" in the gutter, folding up that section > of HTML. > Select the blob between the start and end tags; the one that looks like a > grey "…". > Copy. Switch to new window. Paste. > > Voila! > > -- Marshall > > -- > 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]. > > > -- 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].
