By design, BBEdit's line processing commands target whole lines only since processing partial and/or blocks of lines is (in general) quite a bit more complicated.

Instead, I recommend you try the "Extract" command (which is tailor-made for just this sort of task :-) and you can configure & apply this command in the Find or Multi-File Search windows or invoke it directly via Search -> Extract.


Regards,

 Patrick Woolsey
==
Bare Bones Software, Inc.             <http://www.barebones.com/>



On 2/24/17 at 7:04 AM, wordweaver...@gmail.com (Bill Kochman) wrote:

[...]

So, to accomplish this, I thought I could use the “Process lines containing” option, and then, using a grep pattern in the file name, lastmod date and priority fields, I could copy all four strings contained in a URL section — in other words, from the opening “<url>” tag to the closing “</url>” tag to a new document.

However, BBEdit does not seem to want to have anything to do with processing a multi-line selection contains three grep patterns.

In short, if I give BBEdit something like this . . .

<url>
<loc>https://www\.billkochman\.com/Articles/(.+?)\.html</loc>
<lastmod>(.+?)</lastmod>
<changefreq>weekly</changefreq>
<priority>(.+?)</priority>
</url>

. . . and ask it to copy all URL sections which meet that criteria to a new document, it does nothing . . . not even an alarm beep saying “You can’t do that!”.

And, yes, I do have the grep box checked in the processing window.

So is there a way to process an entire section of lines like that, and treat it as a whole, or is this an exercise in futility?

Thank you.

Kind regards,

Bill K.


--
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