in reply to Re^3: string manipulation with Regex
in thread string manipulation with Regex

That almost worked for my own tests. I switched $CIGAR to $cmd in the elsif statements and it started doing it no matter what combination of I's, D's, or M's.

Thanks for your help! =)