Regular Expressions 101

Community Patterns

IpAddress

1

Regular Expression
ECMAScript (JavaScript)

/
^(([0-9]){1,3})[.](([0-9]){1,3})[.](([0-9]){1,3})[.](([0-9]){1,3})$
/
gm

Description

Ensure the ip address format is correct

Submitted by aaa - 4 years ago