Regular Expressions 101

Sponsors

Library entries

1
python

CRON

Validades cron job time specification
Submitted by anonymous - 5 months ago
1
javascript

HTML注释

HTML注释
Submitted by anonymous - 3 months ago
1
javascript

phone regex

phone regex
Submitted by antiai - 2 months ago
1
javascript

提取步骤1

提取步骤1
Submitted by liangchao - 2 months ago
1
javascript

array path

Extract the array path from a nested path
Submitted by anonymous - 2 months ago

phone regex

Vote

2

Regular Expression
javascript

/
(?=.*?\d{3}( |-|.)?\d{4})((?:\+?(?:1)(?:\1|\s*?))?(?:(?:\d{3}\s*?)|(?:\((?:\d{3})\)\s*?))\1?(?:\d{3})\1?(?:\d{4})(?:\s*?(?:#|(?:ext\.?))(?:\d{1,5}))?)\b
/
gi

Description

Loading markdown...
Submitted by Mélissa Dumont - 8 years ago