View Single Post
Saturn's Avatar
Posts: 1,648 | Thanked: 2,122 times | Joined on Mar 2007 @ UNKLE's Never Never Land
#50
Originally Posted by fcrochik View Post
Mismatched?
<snip>...
Yes, right now is a "dumb" algorithm but I have to say that I already like it better than having all the numbers without any separation (like on the standard application). I have international phone numbers with +, some phone numbers with area code and some without on my cell. Some countries have 3 digit prefix (e.g. US), some have 4 (e.g. Brazil) and the international code is not standard (it can be 1,2,3,4 or even more digits long) so it is a little more complicated to format them that one would hope.
...<snip>
Just an idea - You could start from the end in order to separate. That is, from back to front 4, 3, 2 or 3 if last digit, and all other left.

... but maybe you have a better one already.

Thanks for sharing.