in reply to Breaking symmetry with a regex
C:\>perl -wle "$x = 'a:b:'; $x =~ s/:$//; print $x;" a:b [download]