Which of the following Regular expression is used to validate a 10 digit phone fied?
Interview question and answer by:
Syedshakeer | Posted on: 9/8/2009 | Category:
ASP.NET Interview questions | Views: 6363 |
Select from following answers:- [0-9]{10}
- \d{10}
- \w{1,}
- 1) and 2)

[0-9] means it takes digits in between 0-9
{10} means it allows exactly 10 digits.
\d means it takes digits in between 0-9
Show Correct Answer |
Asked In: Many Interviews
|
Alert Moderator
Found interesting? Add this to: