PHP Validate Email address – PHP May 6, 2011 Pramod T P Leave a comment if (!preg_match('|^http(s)?://[a-z0-9-]+(.[a-z0-9-]+)*(:[0-9]+)?(/.*)?$|i', $cUrls)) $errorList[]="Invalid Client url - $cUrls. ' "; echo "Invalid url";