Regular Expressions 101

Ip check, shortest

Open Workspace
  • PCRE2 (PHP)
  • Match
0

Regular Expression

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

Description

Ip check, shortest validate ip

Submitted by Di