At 13:54 -0700 20/08/2011, verdonv wrote:
Hi Chris,
Thanks for the feedback and the example. I like the simpler pattern
too :-)
As to why I am activating it from a clipping, well because it is part
of a bigger set of clippings.
So far as I can see you can use shell scripts in clippings just as
well, and to do this:
My string might look like this...
C EM Am7 F
The result looks like this...
[C] [EM] [Am7] [F]
All you need is:
#! /usr/bin/perl
while (<>) {s~(\w+)~[$1]~g; print}
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 bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
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 "supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>