08.09.2014, 14:50
sscanf can do that, I can't remember the optimal pattern but it would be something like this: "p<@>s[64]s[189]" (I could be wrong). Regex can also do this but all you need to do really is check if the string contains an @ and send them a confirmation email with a validation key/URL etc.