Tutorial by Examples

Detailed instructions on getting validation set up or installed.
Validating the Name entered by a User contain the following check Ensure it is not empty Ensure it contain only alphabets, space and/or dot. So, the regular expression for this is ^[A-Z][a-z]*(\.?\s?[A-Z][a-z]*)+$ This means ^ -> Should start with [A-Z] -> the first lette...
Let's take the Range is from 18 to 80. So, to validate, We should check that the age is a positive integer. Then check it should be greater than or equal to 18 and less than or equal to 80. The test to check whether it is a number or not can be performed by a simple regular expression like ^[0-...
Sometimes, we have to take input from users which should contain only alpha numeric characters. For example, lets say a Username system which allow only letters and numbers, Then this can be done with the following Regular Expression ^[a-zA-Z0-9]+$ ^ is restrict the start [a-zA-Z0-9]+ is th...

Page 1 of 1