Monday, March 15, 2010

REGEX: IPv4 Address

<?php
$ip = '/(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})/';
?>