Regular expression to match US phone numbers

前端 未结 5 1287
臣服心动
臣服心动 2020-12-22 04:31

The regular expression ^((\\(\\d{3}\\) ?)|(\\d{3}-))?\\d{3}-\\d{4}$ matches strings of the form XXX-XXX-XXXX and XXX-XXXX (am I missin

5条回答
提交回复
热议问题