At 09:23 -0700 08/24/2012, nohler wrote: >I've got an xml file that was exported from WordPress. I want to find the >Post item types and copy them to another file. I also want to change the >posts to products. > >I think I'm looking for a multi-line block of text that starts with <item> >and contains <wp:status>publish</wp:status> and contains ><wp:post_type>post</wp:post_type> and ends with </item> [...] > >If there is a way to find this with a grep expression, what would I write?
Though that will depend on exactly what you want to do with the found text, here's a building block you can use: <http://groups.google.com/group/bbedit/msg/a52259af27de5d95> to match the sections of text in between the specified tags. Regards, Patrick Woolsey == Bare Bones Software, Inc. <http://www.barebones.com> P.O. Box 1048, Bedford, MA 01730-1048 -- -- You received this message because you are subscribed to the "BBEdit Talk" discussion group on Google Groups. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at <http://groups.google.com/group/bbedit?hl=en> 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>
