Regular Expressions 101

Community Patterns

31

ninite

PCRE (PHP <7.3)
no description available
Submitted by peek - 8 years ago
9

only numbers

PCRE (PHP <7.3)
A string with only numbers in
Submitted by Gotts - 8 years ago

Match IPv4 Valid

0

Regular Expression
.NET 7.0 (C#)

@"
\b(\d{1,2}|1\d{2}|2[0-4]\d|25[0-5])\b\.\b(\d{1,2}|1\d{2}|2[0-4]\d|25[0-5])\b\.\b(\d{1,2}|1\d{2}|2[0-4]\d|25[0-5])\b\.\b(\d{1,2}|1\d{2}|2[0-4]\d|25[0-5])\b
"
gm

Description

Loading markdown...
Submitted by anonymous - a year ago