Hi,
I'm writing a regex, somehow the regex never matched.
after some analyzing it seemed to be the ip-part:
<?php
$sIP = "192.168.2.1";
if(!ereg('([01]?[0-9]{1,2}|2[0-4][0-9]|25[0-5].){3}([01]?[0-9]{1,2}|2[0-4][0-9]|25[0-5]){1}$',$sIP))
{
echo"wrong";
}
else
{
echo"yay...";
}
?>
What am I doing wrong?
Thnx in advance!