Regular Expressions 101

Sponsors

Library entries

0
pcre

CPF

Regra de validação de CPF.
Submitted by anonymous - a year ago
0
pcre2

find matched words

find matched words
Submitted by fajar - a year ago
0
pcre2

Cron regex

cron regular expression
Submitted by anonymous - a year ago
0
pcre2

Not ending with png

Not ending with png
Submitted by Archon - a year ago
0
pcre

Semver

Public library
Submitted by Masoud shokohi - a year ago
0
pcre2

SamAccountName

Test for valid ActiveDirectory SamAccountName
Submitted by gareth - a year ago
0
javascript

IPv4 address

IPv4 address RegExp.
Submitted by Sling - a year ago
0
javascript

ESO

eso
Submitted by KC - a year ago

Capture digits and extension of North American phone number (North American Numbering Plan)

Vote

0

Regular Expression
pcre

/
(?:[\+1\(-. ]{1,})?(?<ac>[2-9]{1}[0-9]{2})(?:[\(-. ]{1,})?(?<coc>[2-9]{1}[0-9]{2})(?:[\(-. ]{1,})?(?<sn>[0-9]{4})(?:\d{0,})?(?:\s*(?:#|x\.?|extension|ext\.?)\s*)?(?<ext>[a-zA-Z0-9. ]{0,})$
/
gm

Description

Loading markdown...
Submitted by anonymous - 3 years ago