Jump to content

[SOLVED] Check if string contains email


andersj

Recommended Posts

Hello,

 

I've run into a problem where I've tried everything possible on something that really isn't so hard.

 

On my form validation, I am checking if the posted string contains an email. If it does I want to throw up an error. It's coming from a textarea so there can be as much text before or after the email, it just needs to throw up that area, if one is in there. I've tried incorporating regular expressions with no avail.

 

Your help would be much appreciated.

 

Thanks.

Link to comment
https://forums.phpfreaks.com/topic/114951-solved-check-if-string-contains-email/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.