Regular Expressions 101

Community Patterns

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 - 2 years ago