Re: phone number regular expression problem



venu wrote:
Hi,
I have a different requirement and it is :

Different from what?


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

Show us what you have tried, and folk here will help you to make it work.

DS
.



Relevant Pages

  • Re: phone number regular expression problem
    ... venu wrote: ... # any number of - hyphens ... # no other characters and alphabets are allowed ...
    (microsoft.public.dotnet.languages.vb)
  • Re: phone number regular expression problem
    ... venu wrote: ... I need to validate a phone number field. ... # no other characters and alphabets are allowed ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: phone number regular expression problem
    ... The constraints are: ... any number of - hyphens ... no other characters and alphabets are allowed ...
    (comp.lang.perl.misc)
  • Re: Writing Trauma
    ... The constraints are imposed by the theme, ... the world, the characters, and the existing explicity history. ... The plot and the characters are far more important to every other ... hacker friend, leaving the protagonist to fiddle, powerless. ...
    (rec.arts.sf.composition)
  • Re: Why all the max length constraints?
    ... You asked a very general question, so I'm going to respond in ... Length constraints are a physical reality. ... more than 2 characters for a state code, for example, more likely ... toward variable lengths. ...
    (comp.databases.theory)