Code: Select all
$email = isset($_POST['email']) ? $_POST['email'] : null;
$find = "*";
if(preg_match("/$find-\d/", $email)) {
echo "matched";
}[text]Warning: preg_match(): Complication failed: nothing to repeat at offset 0.[/text]
I'm trying to find * in the email address. and act upon that.