Possible Duplicate:
US Phone Number Verification
I need to validate US phone number. It could be in the format:
xxx-xxx-xxxx
(xxx) xxx xxxx
(xxx)-xxx-xxxx
xxxxxxxxxx
but it should not be
xxx-xxx-xxxx-
-xxx-xxx-xxxx
It should accept digits, hyphens, space and parentheses.
Currently I use
^\[0-9 \-\. ]+$
which does not validate dash at the beginning or end.