Regexp for valid ip address

Here is a fairly short regular expression you can use to match valid IPV4 IP addresses:
/^(((25[0-4])|(2[0-4][0-9])|(1?[0-9]?[0-9])).){3}((25[0-4])|(2[0-4][0-9])|(1?[0-9]?[0-9]))$/

Good luck!

Yonah Russ

Yonah Russ
Production tested jack of all trades and master of some. Forgotten more than I remember, some of which is written here. Occasional BOFH but only because I care. KISS is Bliss!

Being a startup shouldn't mean starting from scratch

In an open retrospective, Eden Shochat,¬†from¬†Aleph VC, asks what they could do better to help the companies they invest in. I really appr...… Continue reading

Triton Bare Metal Containers FTW!

Published on June 22, 2015