$string='IIIIIIIIIIIMMMMMMMMMMMMOOOOOOOOOOOOMMMMMMMMMIIIIIIIII'; print $count=$string=~s/M/M/g; [download]
In reply to Re: Faster way to do this? by nikosv in thread Faster way to do this? by Anonymous Monk