hi,
how do I write an expression which checks for low-caps and must contains a dot.
the code below will accept the input with or without a dot… but I want it accept the input only with a least a dot…
$values=array("fooBar", "12345", "foo bar", "foo.bar", "http://lauthiamkok.net");
foreach($values as $value) {
if (!preg_match('/^[a-z0-9.:\\/\\/]+$/', $value))
{
echo "Not valid: $value <br>";
}
}
//RESULT
//Not valid: fooBar
//Not valid: foo bar
any ideas?
many thanks,
Lau