Separation of telephone numbers by a dot

Hello,
Am still newbie in coldfusion.
I have a telephone number of 12 digits, for e.g, +331234567890.
Now I have to replace the country code by 0,i.e, +33 to 0. I have already done that.
My problem is how to separate these 10 remaining numbers and put a dot in between each 2 numbers like 12.34.56.78.90 and at the end join the country code like 0.12.34.56.78.90
I was thinking of doing a Len() of the numbers and then separate them by a dot but unfortunately I don't know how to do it.
Can anybody help me please ?
Thanks in advance.

<cfset dotted_reverse_telno = "">
<cfset telno = "01234567890">
<!---Reverse the tel number --->
<cfset reverse_telno = reverse(telno)>
<!---Run through the digits in the reversed number, adding a dot after every 2 digits --->
<cfloop from="1" to="#len(reverse_telno)#" index="n">
    <cfif n mod 2 EQ 0>
        <cfset dotted_reverse_telno = dotted_reverse_telno & mid(reverse_telno, n, 1) & "." >
    <cfelse>
        <cfset dotted_reverse_telno = dotted_reverse_telno & mid(reverse_telno, n, 1)>
    </cfif>
</cfloop>
<!---Reverse the result --->
<cfset dotted_telno = reverse(dotted_reverse_telno)>
<cfoutput>#dotted_telno#</cfoutput>

Similar Messages

  • How do I change the decimal separator from a comma to a dot in numbers? I upload my bank statements into numbers and all contain dots. Numbers does not understand the dots.

    Hi,
    I am a recent convert from Exell to Numbers.
    I have downloaded my bank statements to Numbers. The bank statement uses dots as decimal separators, whilst the Numbers default is a comma.
    I need to change the Numbers format to dot to avoid having to manually change all in the downloaded spreadsheet.
    This spreadsheet also includes my currency as R (ZAR Rands), so either need to remove these or get Numbers to understand it, again to avoid having to remove/change all manually.
    Would really appreciate your help.

    Hi,
    Thanks for your response. Have figured it out with the help of Ross at the V & A Waterfront Apple Store.
    System Preferences- Language and Region- at the bottom of the box click "Advanced"- then choose the dot/ comma under Number separators- Decimal and again under drop down box "decimal" under currency.
    Regards
    Teana

  • I would like to read a text file in which the decimal numbers are using dots instead of commas. Is there a way of converting this in labVIEW, or how can I get the program to enterpret the figures in the correct way?

    The program doest enterpret my figures from the text file in the correct way since the numbers contain dots instead of commas. Is there a way to fix this in labVIEW, or do I have to change the files before reading them in the program? Thanks beforehend!

    You must go in the labview option menu, you can select 'use the local
    separator' in the front side submenu (LV6i).
    If you use the "From Exponential/Fract/Eng" vi, you are able to select this
    opton (with a boolean) without changing the labview parameters.
    (sorry for my english)
    Lange Jerome
    FRANCE
    "Nina" a ecrit dans le message news:
    [email protected]..
    > I would like to read a text file in which the decimal numbers are
    > using dots instead of commas. Is there a way of converting this in
    > labVIEW, or how can I get the program to enterpret the figures in the
    > correct way?
    >
    > The program doest enterpret my figures from the text file in the
    > correct way since the numbers contain dots instea
    d of commas. Is there
    > a way to fix this in labVIEW, or do I have to change the files before
    > reading them in the program? Thanks beforehend!

  • ASCII (SYMBOLS & CHARACTERS) Conversion to Telephone numbers

    I am using oracle Release 9.2.0.7.0 and I am trying to access a database containing telephone numbers and codes, the table contains two columns with the names no and code both are VARCHAR2 column datatype. As you can see below the values in these two columns are ASCII characters and symbols. I tried to save the SQLPLUS query (select no, code from subdata) into a a file using spool command but the Ascii symbols and characters have being changed into some other format I am not familiar with I will show it below. Therefore is there a function that can help me to convert the ascii codes into the telephone numbers without doing any import or export, an embedded SQLPlus function will help me very much.
    This is a sample of the current table containing the ASCII codes:
    no code
    %)öFƒ   cs☺ ☻YO
    %)ûe_   cs☺ ☻Y_
    %)ö►_   cs☺ ☻Y
    %)ö♥▼   cs☺ ☻YÅ
    %)ö"_   cs☺ ☻Yƒ
    %)ö☻o   cs☺ ☻`
    %)ô☺▼   cs☺ ☻`▼
    %)öt_   cs☺ ☻`/
    %)öto   cs☺ ☻`?
    %)æ_   cs☺ ☻a
    %)òS▼   cs☺ ☻h_
    no code
    %)öv   cs☺ ☻pÅ
    %)öp?   cs☺ ☻pƒ
    %)Æ♠_   cs☺ ☻q
    %)öp/   cs☺ ☻q▼
    %)öuo   cs☺ ☻q/
    %)Æ _   cs☺ ☻q?
    %)ö↨O   cs☺ ☻qƒ
    %)öu   cs☺ ☻r
    %)ÿ☺O   cs☺ ☻r▼
    %)öQ_   cs☺ ☻r/
    %)öB?   cs☺ ☻r?
    24 rows selected.
    SQL>
    This is the format I got after I saved the query results of the sub_data table into a text file using SPOOL command:
    no Code
    %)^G\2223?\377\377 cs 5_
    %)^G\225^X_\377\377 cs 5\217
    %)^G\2238\217\377\377 cs 3/
    %)^G\225^Q\217\377\377 cs 6O
    %)^G\223^Q^O\377\377 cs 3?
    %)^G\223SO\377\377 cs 3o
    %)^G\2231^O\377\377 cs 3^?
    %)^G\223\225/\377\377 cs 3\217
    %)^G\223^W^_\377\377 cs 3\237
    Abdel Moalim
    Bosaso, Somalia

    The two column names are MSISDN and IMSI
    MSISDN IMSI
    %)VXO   cs☻ ☺sA/
    %)sq   cs☻ ☺åo
    %)ÖÇ   cs☺ ♥y_
    %)ÖÇ_   cs☺ ♥y?
    %)ÖÇo   cs☺ ♥yO
    %)ÖÇÅ   cs ► y?
    %)Öü▼   cs☺ ☻io
    %)Öü?   cs☺ ☻iO
    %)ÿâO   cs☺ ☻iÅ
    %)Öü   cs☺ ♥yo
    %)û↕_   cs☺ ☻i
    MSISDN IMSI
    %)ûƃ   cs☺ ☻i
    %)ûT▼   cs☺ ☻p▼
    %)ûw?   cs☺ ☻po
    %)Æ▼   cs☺ ☻p
    %)ÿêO   cs☺ ☻hƒ
    %)ûR_   cs☺ ♥y/
    %)ùFÅ   cs☺ ♥s
    %)ÿ1_   cs ► i?
    %)ÿü▼   cs☺ ☻p/
    %)ùöƒ   cs☺ ☻p
    %)ÿ1o   cs☺ ☻hÅ
    MSISDN IMSI
    %)òE_   cs☺ ☻É
    %)ÿ   cs☺ ♥sÅ
    %)û0Å   cs ► dƒ
    %)Ö♥Å   cs☺ ♥sƒ
    %)Öbo   cs☺ ♥t/
    %)ÿ    cs☺ ♥t?
    %)Ö♠Å   cs☺ ♥tO
    %)û%O   cs☺ ♥t_
    %)æ?   cs !_
    %)Öö   cs☺ ♥to
    %)ûV   cs☺ ♥tÅ
    MSISDN IMSI
    %)òô/   cs☺ ☻cƒ
    %)òSÅ   cs☺ ☻d?
    %)òSƒ   cs☺ ☻hO
    %)òV▼   cs☺ ☻do
    %)ò3   cs☺ ☻"ƒ
    %)òT▼   cs☺ ☻h
    %)ò3o   cs☺ ☻ho
    %)ÖG   cs☺ ♥tƒ
    %)Ö1?   cs☺ ♥u
    %)Ö`_   cs☺ ♥u▼
    %)Ö2?   cs☺ ♥u/
    MSISDN IMSI
    %)ùù/   cs☺ ♥u?
    %)Ö►o   cs☺ ♥w?
    %)D☺▼   cs☻ ☺Eÿ?
    %)ÿY   cs☺ ♥w_
    %)ÖDo   cs☺ ♥wO
    2469 rows selected.
    SQL>

  • How to Format telephone numbers in Adress Book

    I want to format all my telephone numbers to an International format as from the UK. Such as +44 #### ### ###. But try as I will to input this into Address Book Phone Preferences under custom nothing happens. The drop box gives three pre-set format and the custom option ~ I can alter the pre-set numbers but not save them, I can also enter a custom set up but it does not save or implement itself.
    Strangely the presets work, but not when altered (I have pressed enter to save!)
    Can anyone make some 'sane' suggestions as I need to get all telephone numbers in the same +44 format without having to go through everything by hand.
    Here's hoping, thanks guys.
    iMac 15, 17 & 20 plus 12 Powerbook. All linked by Airport   Mac OS X (10.4.6)  
    iMac 15, 17 & 20 plus 12 Powerbook. All linked by Airport   Mac OS X (10.4.3)  

    You posted in the OS 9 (pre-year 2000) forum instead of the MacBook Pro forum. To get answers to your question, next time post in the proper forum. See https://discussions.apple.com/index.jspa  I'll request that Apple relocate your post.
    What OS X version are you running?
     Cheers, Tom

  • XIF Adapter : Upload of Business partner(Using LSMW) Telephone Numbers

    Hi all
    I'am uploading BP data using XIF Adapter and I am using the LSMW-IDOC Method (Basic type:CRMXIF_PARTNER_SAVE_M02)
    Here My client came with 4 telephone numbers, can any one please help me how can I uploade these 4 telephone numbers. when I am trying to upload by default it was accepting only the first telephone number and leaving the others
    Thanks in advance
    Warm regards
    bms

    Hi Thierry,
    thank you for that suggestion. I've already found [ODS for Marketing Attributes|http://help.sap.com/saphelp_crm50/helpdata/en/07/d545a50869754fbad8062e17c2ea0e/frameset.htm] when I've searched in the CRM Documentation. I've just asked my BI colleague to do the extract to BW. I will then write a Web Service on the BW which can be called from the external system.
    Best regards
    Gregor

  • HT4623 My contacts are listed by telephone numbers instead of names in my messages since I upgraded to OS8? How can I change it to names?l,

    My contacts are listed by telephone numbers instead of names in my messages since I upgraded to OS8? How can I change it to names?l,

    Under Settings->Messages->Send & Receive
    1) is your Apple ID listed there?
    2)  Under "You can be reached..." is your phone number appearing at the top of the list and does it have a checkmark next to it?
    3) Under "Start New Conversation From" is the checkmark next to your phone number?

  • Why do my senders of txt messages show up as telephone numbers instead of names?

    Why do my senders of txt messages show up as telephone numbers instead of names?

    Chances are the senders are not in your contacts. 

  • Automatic insertion of spaces in telephone numbers in iPhone OS 3.0.1

    Hello!
    I think there are two annoying behaviors in iPhone OS 3.0.1:
    • if you go to contacts, create a new contact and enter a telephone number there will be inserted automatically spaces into the telephone number. One the one hand this behavior can be very practical (for example if iPhone 3.0.1 identify thereby already used formats of telephone numbers), on the other hand this behavior can be very annoying (for example if you want to create a special format for one telephone number). If you synchronize telephone numbers from your iMac to your iPhone, iPhone OS 3.0.1 put also automatically spaces into synchronized numbers.
    • there is also missing a hyphen in the number keyboard to insert into the telephone number in iPhone OS 3.0.1.
    First I think it would be a very good if there would be a function in iPhone OS 3.1 which deactivates the automatic insertion of spaces, secondly I think there should be a a hyphen in the number keyboard to insert into the telephone number in iPhone OS 3.0.1.
    How do you think about my suggestions?
    Message was edited by: Roman Patrice Gego

    ok after all summer have this toy (BETA )iphone upgrade to 3.0.1 still drop calls so i send it for repair or replace i can write full pages regarding that beta product i need to find tonight to send mail to EU as a customer i need to find my right i pay 600 euro in 10/06/09 and still is not working properly as it must be A PHONE i am professional and i need my phone to work as a tool i wll reply too all that will ask me my phone number exept my e-mail are
    [email protected]
    0035799845222

  • When I import a text file(comma separated )into a numbers spread sheet all the data goes into one column. Why does the text not go into separate columns based on the commas.

    When I import a text file(comma separated) into a numbers spreadsheet all the data goes into one column instead of individual columns based on the comma separators.  Excel allows you to do this during the import..  Is there a way to accomplish this in numbers without opening it in Excel and the importing into Numbers.

    Your user info says iPad. This is the OS X Numbers forum. Assuming you are using OS X… Be sure the file is named with a .csv suffix.
    (I don't have an iPad, so I don't know the iOS answer.)

  • Mobile number and telephone numbers not displying in lync contacts for other SIP domains.

    Hi everyone,
    we recently migrated Lync 2010 to 2013, we have 2 SIP boc.bh and scys.gov.bh and local domain boc.local.
    lync users for boc.bh not getting telephone numbers & mobile number on lync contact list, same happening for scys.gov.bh lync users they are not able to see any boc.bh lync user telephone number and mobile number on lync list.
    but old with lync 2010 all users able to see all numbers in lync list.
    recently we changed user UPN suffix for BOC.bh and scys.gov.bh to respective users.
    there is no any error massage on lync servers.
    manish yadav

    Hi Manish!
    On the Lync Server 2013 environment you can run the Lync PowerShell command: "Update-CsUserDatabase" after 5 minutes run the command: Update-CsAddressBook
    Please after that run: "Invoke-CsManagementStoreReplication" wait for Lync replication with command: "Get-CsManagementStoreReplicationStatus" when Status for each server is appearing as True finally apply the following steps to test with
    2 accounts:
    Log off of the Lync client and delete the profile from:
    %userprofile%\appdata\Local\Microsoft\Office\15.0\Lync
    then execute the following command in the command prompt to add the registry that forces the Lync client to immediately download the address book:
    reg add HKLM\Software\Policies\Microsoft\Office\15.0\Lync /v GalDownloadInitialDelay /t REG_DWORD /d 0 /f
    Sign-in to users again to lync client and test between each other.
    PLEASE REMEMBER, if you see a post that helped you please click "Vote As Helpful" and if it answered your question please click "Mark As Answered"

  • How to update multiple telephone numbers of a customer in ADR2 table?

    Can anyone please help on how to update multiple telephone numbers of a customer. Is there a function module available for the same?
    Does SD_CUSTOMER_MAINTAIN_ALL Func Mod. update only the default telephone number in adr2?

    Hi,
    check this link
    link:[Customer tel number change.;
    hope u'll get some idea.
    Regards,
    Sneha.

  • How can I include telephone numbers when printing address labels using Dymo Labelwriter Turbo 330?

    I am able to pull info from Apple Address Book using the Dymo Labelwriter application, but I cannot seem to include telephone numbers. Does anyone know how to do this?

    short answer
    1 - NO
    2 - It is up to apple to correct the issue and I have heard they will look at it. It doesn't hurt to call customer support both apple and dymo to let them know you are unhappy about this [it used to work fine in later versions of 10.3]. Also don't let them convince you that you must have installed the driver wrong or something. I have had the same problem on 3 different macs [one of which was brand new] with 2 different dymo label printers.

  • I want to create a formula for telephone numbers in the formula editor

    Is there a way to create a formula for telephone numbers in the "custom" editor in the inspector
    IE if I enter 2123456789 into a cell it automatically formats it to look like this (212) 345-6789

    You can create a new format by opening the Cells Inspector, then selecting "Custom" from the format menu:
    You can add the ### fields and click the menu on the left of the field:

  • How to separate telephone numbers in contacts

    how to separate telephone numbers in groups of 4 in contacts

    You posted in the OS 9 (pre-year 2000) forum instead of the MacBook Pro forum. To get answers to your question, next time post in the proper forum. See https://discussions.apple.com/index.jspa  I'll request that Apple relocate your post.
    What OS X version are you running?
     Cheers, Tom

Maybe you are looking for

  • How can i erase an iTunes Account ?

    Hi, my man have logged in with with his username of  the iTunes store so I switched to mine as I wanted to download some apps and it wasn't a problem  but when I click on the iTunes store icon to either update or download apps I get a window with my

  • Error while accessing Access Manager

    Hi All, I am getting the following error after configuring access manager and restarting the web server. [25/May/2006:18:14:16] info ( 1724): CORE1116: Sun Java System Web Server 6.1SP5 B01/15/2006 23:04 [25/May/2006:18:14:30] info ( 1724): HTTP3072:

  • Do i have to register my ipad air

    I just bought a I Pad Air do I have to register it for warranty? if so where do I do that.? Thanks 

  • Guest users cannot see or connect to shares on Snow Leopard 10.6.1

    I recently upgraded to Snow Leopard from 10.5. After upgrading, users connecting as "guest" to my computer cannot see any of the shares (and therefore cannot connect to them). If I connect as my administrator user from another computer, I can see all

  • Changing the timing in scheduler jobs

    Hi All, In the below code I have given the execution timing as 2:15. But next run date value is showing as 3:00 AM. What is wrong here?. I created this job at 2:00 AM SQL> select owner,LAST_START_DATE,NEXT_RUN_DATE from dba_Scheduler_jobs where JOB_N