Regular Expressions 101

Community Patterns

1

match "baseip/cidr"

PCRE2 (PHP >=7.3)
match "baseip/cidr"
Submitted by Erik - 5 hours ago
1

amp;

PCRE2 (PHP >=7.3)
subtitui
Submitted by seidao - 14 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 - 4 months ago