Check email address syntax with PHP regex

If you need to save and use email addresses that you got from user input, you need to check these addresses are valid and safe to use.
But you can't just check for a "@" sign, you need to check the syntax is really valid from the beginning to the end of the address.

Here is a simple regex code that detects if the emails looks valid or not :