Regular Expressions 101

Library entries

IP Address (with 0s)

Vote

4

Regular Expression
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 - 6 years ago