s/(XX)/$1/g; [download]
In reply to Re^3: count repeatation by JavaFan in thread count repeatation by saranperl