If i understood your question correctly,this might help you.
Prasad
In reply to Re: How to separate digits by prasadbabu in thread How to separate digits by imperl