Posted By

dmertl on 10/27/10


Tagged

regex php ip RegularExpression preg IPv4


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

Tyster
adkatrit
macster


Regex - Match IPv4 address


 / Published in: Regular Expression
 

  1. /\b(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\b/

Report this snippet  

You need to login to post a comment.