Display string in correct format

Experiences, small talk, and other automation gossip.
Rakesh123
Posts: 63
Joined: Thu Oct 28, 2010 2:18 pm

Display string in correct format

Post by Rakesh123 » Tue Dec 02, 2014 8:35 am

Hi Frnds,
I have a small scenario..
For e.g:If i pass a string as "aabbbcccc".O/P should be 2a3b4c
If i pass a string as "ddeefdffss".O/P should be 3d2e3f2s
Can anyone tell me the logic for this?
Thanks,
Rakesh