Title |
Test
Find
Pattern Title
|
Expression |
((\(\d{3}\)?)|(\d{3}))([\s-./]?)(\d{3})([\s-./]?)(\d{4}) |
Description |
US Phone number that accept a dot, a space, a dash, a forward slash, between the numbers. Will Accept a 1 or 0 in front. Area Code not necessary |
Matches |
1.2123644567 | 0-234.567/8912 | 1-(212)-123 4567 |
Non-Matches |
0-212364345 | 1212-364,4321 | 0212\345/6789 |
Author |
Rating:
Not yet rated.
Mart Maasikas
|
Source |
Steven Smith |
Your Rating |
|
Title: Doesn't work properly
Name: Bill
Date: 6/12/2019 9:19:02 PM
Comment:
It correctly matches 4 digits at the end, but if there is any character beyond the 4 digits, it still matches. I think all it needs is a $ at the end of the regex.
Title: Doesn't work properly
Name: Bill
Date: 6/12/2019 9:16:01 PM
Comment:
It correctly matches 4 digits at the end, but if there is any character beyond the 4 digits, it still matches. I think all it needs is a $ at the end of the regex.