Ver original$texto = $_POST['like']; if(preg_match("#\https?://[^<>\"']+?#ise", $text)){echo("No incluyas URL");exit;}