Regular expression for validating name in asp net
For example, the following formats are all commonly used: The C# version of this code can be found on the CD-ROM.
The Validation controls require you to enter a password that starts with at least one letter and contains one number and between 3 and 20 characters (special characters, such as The C# version of this code can be found on the CD-ROM.Samples of how to use a regular expression to perform all these validation tasks are provided in the following sections.The properties and methods of this control are listed in Table 3.2.CAUTION Regular expressions work somewhat differently in Java Script than they do in the . So, in certain circumstances, the client-side validation code used for matching regular expressions might return different results than the server-side validation code. NET regular expression might generate a Java Script error.For example, the syntax for using regular expression options inline, such as the The C# version of this code can be found on the CD-ROM.