Hello again.
I don’t know if this is possible or not, but I thought I would ask.
While I obviously realize that Googlebot couldn’t give a hoot regarding how my
sitemap.xml file is organized, being a perfectionist, I am.
Thus, I want to organize my sitemap according to my personal liking; that is,
with pages with the highest priority at the top, followed in sequence by those
with lower priorities.
Furthermore, I want all pages which belong to a particular directory to be
listed together as well. In other words, all docs in the “Articles” directory
will be grouped together. All docs in the “Poetry” directory will be grouped
together. All docs in the “VerseLists” directory will be grouped together. And
on and on it goes.
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
"[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].
Visit this group at https://groups.google.com/group/bbedit.