Retrieve email using regex
This horrendous regular expression will parse a string and return a valid email address from it. $email = "<'Freddy'> fred@live.com"; preg_match('/+(?:\.+)*@(?:(?:*)?\.)+(?:*)?/', $email, $match); echo $match; This will return: fred@live.com Basically,…