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