Jump to content

borisboris

New Members
  • Posts

    1
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

borisboris's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I'm a PHP newbie. I have the following code but cannot get it to work, any ideas on how to make this code work: $email = "myemail@yahoo.com"; //I would like to use the variable $good_email to hold the regular expression //also I need to use the specific below pattern but I'm probably missing double quotes or single quotes i'm //guessing $good_email = ([a-zA-Z0-9]+@[a-zA-Z0-9_-]+\.[a-zA-Z0-9_-]+)+"; if (preg_match(/"$good_email"/, $email)) { echo $email." is a valid email address.<br>"; }
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.