我正在寻找一个匹配荷兰电话号码的正则表达式.这些是格式要求:
>应从0开始
>包含最多1个(可选)短划线“ – ”字符,现在它无关紧要,只要它不是第一个字符
>总长度10或11个字符
这是我到目前为止所提出的:
^0+-{1}?([0-9]{10,11})$
@R_403_323@
我之前见过这个
http://regexlib.com/Search.aspx?k=phone%20number
检查这个网站,希望它有所帮助.
http://regexlib.com/Search.aspx?k=phone%20number
检查这个网站,希望它有所帮助.
(^\+[0-9]{2}|^\+[0-9]{2}\(0\)|^\(\+[0-9]{2}\)\(0\)|^00[0-9]{2}|^0)([0-9]{9}$|[0-9\-\s]{10}$)
Regular expression to evaluate dutch-style phone numbers. Possible example prefixes: +31,+31(0),(+31)(0),0031 followed by 9 numbers (which can contain a space or -).