[phobos] Validating email address and std.regex

Jacob Carlborg doob at me.com
Sat Feb 26 04:16:04 PST 2011


I've ported the email address validator that has been previously discussed here (http://www.dominicsayers.com/isemail/)

I've encountered a problem with the regular expressions used in the PHP code. Apparently std.regex can't handle them because std.regex doesn't completely follow the ECAM standard.

An issue has already been reported for this: http://d.puremagic.com/issues/show_bug.cgi?id=5169

The following is one of the regular expressions used in the email address validator that std.regex can't handle:

\.(?=(?:[^\"]*\"[^\"]*\")*(?![^\"]*\"))

If we want to have this email address validator I think that issue needs to be resolved.

-- 
/Jacob Carlborg



More information about the phobos mailing list