Regular expression for validating 10 digit mobile number. provide code down below
1.Validation expression =”^[0-9]{10}”
[0-9] – it will take only 0 to 9 digits
{10} – means it takes exactly 10 digits..
Example:9023123331
2.Validation expression =”^[8-9]{10}”
[8-9] – it will take only 8 to 9 digits
{10} – means it takes exactly 10 digits..
Example:8923123331