Re: phone number regular expression problem
- From: RedGrittyBrick <RedGrittyBrick@xxxxxxxxxxxxx>
- Date: Wed, 31 May 2006 22:24:08 +0100
venu wrote:
Hi,
I have a different requirement and it is :
I need to validate a phone number field.
It may or may not be a US phone number.
The constraints are :
***********************
# It should accept any number of numbers
# any number of - hyphens
# and one + symbol
# no other characters and alphabets are allowed
You mean the following are acceptable phone numbers:
"+"
"----------------------"
"12345+56789"
"203980234092-091234-0918234-982-34989834-09283-098349821-0394-219384-02918-092834-012983490"
but these are not:
"800 723 9374"
"(0234)23249"
nor this:
"08000 CONTACTS"
I've assumed you actually meant "zero or one + symbol".
.
- References:
- phone number regular expression problem
- From: venu
- phone number regular expression problem
- Prev by Date: MIME::Parser and Purge / Prune
- Previous by thread: Re: phone number regular expression problem
- Next by thread: Database SQL problem....
- Index(es):
Relevant Pages
|
|