Regular Expressions 101

Community Patterns

1...34567...902

Community Library Entry

-1

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]))$
/
g

Description

Matches IP addresses

Submitted by jimbrig - a year ago