in reply to Breaking symmetry with a regex

Hi,

If you really want to use a regex:
C:\>perl -wle "$x = 'a:b:'; $x =~ s/:$//; print $x;" a:b
Cheers,
Rob