I having the following code:
if not (email:match("[A-Za-z0-9%.]+@[%a%d]+%.[%a%d]+")) then
print(false)
end
It doesn't currently catch
"test@yahoo,ca" or "test@test1.test2,com"
as an error.
I thought by limiting the input to %a
- characters and %d
- digits, I would by default catch any punctuation, including commas.
But I guess I'm wrong. Or there's something else that I'm just not seeing. A second pair of eyes would be appreciated.