Scripts: C# :: Form Validation :: Library Article #7
Developer's Section
Validating Phone Numbers using regular expressions in C# By: Erobo Team Member
|
|||
In ths tutorial we explain how to validate an input field that requires phone numbers to be entered.
The function IsPhone takes as input an string that contains the phone number digits. Then, it creates a regular expression which tries to match common phone number patterns such as ### ### ####, ###-###-####, and (###) ###-###. |
|||
|
|||
See other Scripts in Form Validation |
Submit Your Scripts: |
If you would like to have your Javascripts published in this section please fill out the form below: |