Space between phone number

hi i would like to ask you if it is possible to add a space between an example phone number (11 22 33 44 55) thank you

You could use regex extension


You could do this way also

1 Like

Maybe you can get some idea from here, but i have not tested it.

let num = "12345678";
console.log(num.replace(/(\d)(?=(?:\d{3})+$)/g,'$1,'))   //"12,345,678"

thank you :grinning:

1 Like

numberFormat.aia (2.9 KB)

In english there is a method to divide words into syllables - Syllabification (e.g., syl-la-ble), Same applies here as well while putting hyphen or to introduce spaces between mobile number, and there is some defacto standared to breack numbers into parts. Lets say, All mobile phone numbers are 10 digits long. The way to split the numbers is defined in the National Numbering Plan as XXXXX-NNNNN. Here, XXXXX identifies the network operator and the telecom circle while NNNNN identifies the subscriber.

Maybe I didn't get the reason behaind such decompstion. But it dont make much sense to have just spaces after every second degits. Does it make sense if call the word programming as pr-og-ra-mm-in-g, or it make sense as pro-gram-ming since it has 3 syllables.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.