/ Published in: Other
Expand |
Embed | Plain Text
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)
You need to login to post a comment.
joet3ch on 08/25/09
regex textmate ip address pregmatch
1 person have marked this snippet as a favorite
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)
You need to login to post a comment.