Regular Expressions 101

Community Patterns

1

loyal

PCRE2 (PHP >=7.3)
loyal
Submitted by anonymous - 13 hours ago
1

named capture

PCRE2 (PHP >=7.3)
simple named capture
Submitted by Gene - a day 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