> On Tue, 18 May 2004, Greg London wrote:
>
> > $string =~ s{:}{\\:}g;
>
> That prefixes all colons.
>
> He wants the first one to not have the prefix.
>
> I think the solution is more complex than this.
Not too much more complex. :-)
|| % echo "a:b:c:d:e" | perl -pe 's/(:[^:]*)(?=:)/$1\\/g'
|| a:b\:c\:d\:e
|| %
peace, || Rainbow children in Kolkata:
--{kr.pA} || http://tinyurl.com/x8lc
--
"Onomatopoeic" is not onomatopoeic.
_______________________________________________
Boston-pm mailing list
[EMAIL PROTECTED]
http://mail.pm.org/mailman/listinfo/boston-pm