English 中文(简体)
Validaiton on Telephone no for multi countries
原标题:Validaiton on Phone no for multiple countries
  • 时间:2010-07-23 08:46:50
  •  标签:
  • javascript

我的申请有多个国家用户的记录。 我正在记录每个用户的电话号码。 希望在没有国家明智的电话形式上进行验证。

感谢!

最佳回答

。 TelephoneFormat.com 有一个遮蔽的图书馆,完全是你所期望的。 你可以以任何形式通过电话号码,并将国家代码退回,并将之转换成电子164,也可加以编排。

问题回答

取消100%的格式几乎是不可能的,你必须作出一些牺牲。

我只知道联合王国的电话号码,但是,有无数可能有效的电话号码格式和代表这些电话号码的不同方式,例如:

+44 2345 123 456
02345123456
1234 56 78

您的最好之点是,它只包含数量和空间,从一个+开始。 这还可能包含延期的编号?

某些简单的例子如下:

/+?[d+](#d+)?/i




相关问题
selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

How to fire event handlers on the link using javascript

I would like to click a link in my page using javascript. I would like to Fire event handlers on the link without navigating. How can this be done? This has to work both in firefox and Internet ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Clipboard access using Javascript - sans Flash?

Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...

javascript debugging question

I have a large javascript which I didn t write but I need to use it and I m slowely going trough it trying to figure out what does it do and how, I m using alert to print out what it does but now I ...

Parsing date like twitter

I ve made a little forum and I want parse the date on newest posts like twitter, you know "posted 40 minutes ago ","posted 1 hour ago"... What s the best way ? Thanx.

热门标签