Posted By

joet3ch on 08/25/09


Tagged

regex textmate ip address pregmatch


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

joet3ch


regex to test ip v4 address


 / Published in: Other
 

  1. preg_match('/^(?:25[0-5]|2[0-4]d|1dd|[1-9]d|d)(?:[.](?:25[0-5]|2[0-4]d|1dd|[1-9]d|d)){3}$/',$ip)

Report this snippet  

You need to login to post a comment.