Re: phone number regular expression problem
- From: Ted Zlatanov <tzz@xxxxxxxxxxxx>
- Date: Wed, 31 May 2006 12:37:39 -0400
On 31 May 2006, svenugopaal@xxxxxxxxx wrote:
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
Think about the problem and write good requirements (yours are really
bad!). I hope this helps you more than a canned answer would.
Ted
p.s. real answer: look at Number::Phone
http://search.cpan.org/search?query=number%3A%3Aphone&mode=all
.
- References:
- phone number regular expression problem
- From: venu
- phone number regular expression problem
- Prev by Date: Re: Convert string into incremental date
- Next by Date: Re: BEGIN <> BEGIN
- Previous by thread: phone number regular expression problem
- Next by thread: Re: phone number regular expression problem
- Index(es):
Relevant Pages
|