'; } else { $check = $_POST['vkurl']; if ( preg_math( $preg, $check ) { echo 'Ok, you url valid'; } else { echo 'Sorry, you url is not valid'; } } ?>