Regular Expression

Jan 29 2008 7:09 AM

hi..

10-digit US phone number such as 123-456-6789

whn i want to check this number using regular expression. i found the expression coding whicis  "[0-9]{3}-[0-9]{3}-[0-9]{4}". .. But the problem is whn i type first character 4 its says thats  nt an error.

Eg: 1234-456-6789

123-4567-789 those are works...

bt i want to check only 3 character.. hows that.?

Regards

 


Answers (2)