Regular Expressions 101

Sponsors

Library entries

0
pcre

Time format

38 Seconds
Submitted by anonymous - 10 days ago
0
pcre2

Fetch Username and IP

Splunk
Submitted by anonymous - 10 days ago
0
pcre2

HTML Tag Selector

T
Submitted by Rahul - 11 days ago

Validate US Telephone Numbers

Vote

1

Regular Expression
javascript

/
^1?\s?\(\d{3}\)\s?\d{3}\s?-?\d{4}$|^(?:1\s)?\d{3}(\s|-)?\d{3}\1\d{4}$
/

Description

Loading markdown...
Submitted by Davide Vozzi - 6 years ago