Problem is you have a wide array of possible options.  If you put a
simple validation like such:
(/d{3,3})[-.](/d{3,3})[-.](/d{4,4}) and kick out all others then you
will have a consistent form to store.

The wider your options to validate the more likely regex will miss or
falsely validate a value.

On Jun 29, 12:18 pm, Amit Arora <[email protected]> wrote:
> Hi
>
> I am trying to create a phone validation which will pass phone numbers
> in following format:
>
> 1234567
> 12345678
> 123456789
> 1234567890
> 123-456-7890
> (123)456-7890
> 456-7890
>
> Regards
> Amit

-- 
You received this message because you are subscribed to the Google
Groups "DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML
Web Services,.NET Remoting" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/dotnetdevelopment?hl=en?hl=en
or visit the group website at http://megasolutions.net

Reply via email to