Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Sandman Newsgroups: comp.lang.php Subject: Re: Phone number formatting Date: Mon, 28 Nov 2011 08:39:00 +0100 Lines: 24 Message-ID: References: <4ed14055$0$29353$a8266bb1@newsreader.readnews.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: individual.net z88ZqAsptmkTgbmsYF/VsAP984Q2jXbN5eLg62Y/JL1+wanSg= X-Orig-Path: mr Cancel-Lock: sha1:RiJwByXhP7mnfoTIlxO5kNoqvCg= User-Agent: MT-NewsWatcher/3.5.2 (Intel Mac OS X) X-Face: $@,Vfa$,)%=Qa7L]y)&oZj_\EiHc}}Af0Bei"4a_%)"c6TQ+P/:53>;PNGuWUmkqyeN-qM65foJ[;T_(k;>]&G\T4Lhm:2 ujye2_,iUJFE;NZn>y;.|-hl7g~bIOF1qG\o, Denis McMahon wrote: > On Thu, 24 Nov 2011 08:39:17 +0100, Sandman wrote: > > > So, I have a list of phone numbers in various formats I.e. the users > > have written them in different styles, with and without dashes, spaces > > and so on. > > I was thinking about this while I was staying away last night (the bed > wasn't what I'm used to) and came up with the following (displays it's > own source). > > http://www.sined.co.uk/tmp/telnos.php > > Might be of interest. Indeed. I will be doing something similar. I'm loading the area codes from a file, so I could as easily load formats from the same file, so I could load different data depending on country. -- Sandman[.net]