4 ms·
I'm curious, I've always validated an email as containin only one '@' and kept it that simple. This validation would cause that input to be rejected. I would lo
by idk1 4y ago
I'm curious, I've always validated an email as containin only one '@' and kept it that simple. This validation would cause that input to be rejected. I would love to know if my assumption was right, can an email address only have one `@`?
- 3np 4y agoWhat GP is saying is that yes, multiple @ could be a valid address. Your solution (rejecting them) sounds reasonable for sign-up checks I guess but you want to keep receiving incoming mail from such addresses for normal communication.