$prompt=color("blue").": ".color("reset"); unless ($line=~/\r\n$prompt$/){ $line.="\r\n$prompt"; } [download]
In reply to Reg exp with ansi by kael