Possible Duplicate:
A comprehensive regex for phone number validation
i want to validate a telephone number field as can be null and if any entered then it should be 10 digits. Does anyone know how I can write the regular expression for such?
I'm using the @Pattern annotation to validate the telephone number.
Thanks a lot