How to achieve replacement using regualr expression? :     $test="111222333345555";

How to replace the digit of same repeated digits to 't'?

That is how to get the `"11t22t333t34555t"` using regualr expression?