I'm trying to detect if a Youtube video is valid, but they are all invalidI can't work out what's wrong with the preg_match.
PHP Code:else if( !preg_match( "/http:\/\/(.*)youtube(.*)\/watch?v=(.*)/", $yturl ) ) {
echo "<div class=\"regerror\">Invalid Youtube URL</div>";
}





I can't work out what's wrong with the preg_match.
Reply With Quote

