Regular Expressions 101

Community Patterns

0

任意字符串

PCRE2 (PHP >=7.3)
(.*)
Submitted by kobunketsu - 2 years ago
0

ID-in-C

PCRE2 (PHP >=7.3)
Identifiers in C
Submitted by anonymous - 2 years ago
0

DiscoveryPlus regex

PCRE2 (PHP >=7.3)
.
Submitted by anonymous - 2 years ago

Match a phone number formatted using North American Numbering Plan (NANP)

0

Regular Expression
Python

r"
^[ ]*(?:(?:\+)?1)?[ ]*(\()?(?:[2-9][0-9]{2})(?(1)\))[ ]*(?:-|\.)?[ ]*(?:[2-9][0-9]{2})[ ]*(?:-|\.)?[ ]*[0-9]{4}[ ]*$
"
gm

Description

Loading markdown...
Submitted by Nishant Misra - 2 years ago
(Last modified 2 years ago)