2 ms·
All you're checking is if the user has entered an at symbol. If your regex pattern is going to be that loose then what's the bloody point in even having one? I
by laumars 8y ago
All you're checking is if the user has entered an at symbol. If your regex pattern is going to be that loose then what's the bloody point in even having one? I mean you're ultimately just going to rely on authentication emails anyway.
- BjoernKW 8y agoThis expression not only checks for the @ symbol but also makes sure there are no white space symbols (which is a wrong assumption as user wongarsu has pointed out). Anyway, the point is to assist the user, not to verify the email address actually is valid.
- laumars 8y agoBut if you're rejecting valid addresses then you're not assisting the user.