I've now fixed the comments made by Andrei. I've kept the Token struct with the enum because I got errors otherwise when I tried to use a token with functions in std.algorithms. Github: https://github.com/jacob-carlborg/phobos/tree/isemail Documentation: http://dl.dropbox.com/u/18386187/isemail.html -- /Jacob Carlborg