Regular Expressions 101

Community Patterns

0

PLP redirection

PCRE2 (PHP >=7.3)
PLP redirection
Submitted by anonymous - a day ago
1

loyal

PCRE2 (PHP >=7.3)
loyal
Submitted by anonymous - 6 days ago
1

named capture

PCRE2 (PHP >=7.3)
simple named capture
Submitted by Gene - 6 days ago

List of lists of numbers (no leading zeros)

0

Regular Expression
Python

r"
^\[\s*(\s*(\s*\[\s*([1-9][0-9]*\s*,\s*)*[1-9][0-9]*\s*\]\s*,\s*)*\[\s*([1-9][0-9]*\s*,\s*)*[1-9][0-9]*\s*\]\s*)?\]$
"
gm

Description

Loading markdown...
Submitted by anonymous - 9 months ago