Regular Expressions 101

Community Patterns

0

belcorp

PCRE2 (PHP >=7.3)
test
Submitted by anonymous - a year ago
0

C/F temp unit

PCRE2 (PHP >=7.3)
me
Submitted by anonymous - a year ago
0

Postfix

PCRE2 (PHP >=7.3)
Add DR to end of line
Submitted by anonymous - a year ago

Match only capital letters with optional underscore in between

0

Regular Expression
PCRE2 (PHP >=7.3)

/
^[A-Z]+(?:_{0,2}[A-Z]+)*$
/
gm

Description

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