Re: phone number regular expression problem



Hi,

You should be able to get started with this, at least...

^[\d-]*\+?[\d-]*$

Hope that helps.

Dave


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

Thanks in advance

Venugopal.S

.



Relevant Pages