On 24/10/2012 05:59, G.Shaw wrote:
I'm new to BBEdit. I'm trying to do the following:
Input:
<ShipAddress1>884 MapleAve SE</ShipAddress1>
<ShipAddress2 />
<ShipCity>Cumming</ShipCity>
<ShippingPriority>Ground</ShippingPriority>
...
1. Reorder the above such that it's ShippingName, ShippingAddres1,...etc
You can do this with a text filter (see recent posts or read the manual)
like this:
#! /usr/bin/perl
while (<>) {
s~Ship([A-Z])~Shipping$1~g;
print;
}
or simply with the built-in find/replace, setting case-sensitive on and
find: Ship([A-Z])
replace all with: Shipping\1
JD
--
--
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>