Checkout our demo site to practice selenium https://magento.softwaretestingboard.com/

0 like 0 dislike
229 views
in Programming by
retagged by
Can anyone help me with regular expression for finding phone number?

2 Answers

0 like 0 dislike
by
selected by
 
Best answer

Also try this

 

\\(?(\\d{3})\\)?[- ]?(\\d{3})[- ]?(\\d{4})

0 like 0 dislike
by

Try this

 

/^[\.-)( ]*([0-9]{3})[\.-)( ]*([0-9]{3})[\.-)( ]*([0-9]{4})$/


This site is for software testing professionals, where you can ask all your questions and get answers from 1300+ masters of the profession. Click here to submit yours now!

1.4k questions

1.6k answers

866 comments

1.9k users

...