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

IP Address (with 0s)

6

Regular Expression
ECMAScript (JavaScript)

/
^((1?[\d]?[\d]|2([0-4][\d]|5[0-5]))[.]){3}(1?[\d]?[\d]|2([0-4][\d]|5[0-5]))$
/

Description

Loading markdown...
Submitted by Ryan Plummer - 8 years ago