Posted on 2006-03-24
How do I check if $from_mail is like:
Comments: the check is performed after I know $from_mail looks like a correct e-mail address.
So I want to know if it starts with a letter, then alphanumeric chars, then a digit, then "@mysite.com".
The code should look like:
echo '<strong>Pattern matched!</strong><br>';
echo '<strong>Pattern did NOT match!</strong><br>';