DEV Community

Discussion on: Terrible Interview Questions

Collapse
 
zanehannanau profile image
ZaneHannanAU

I would say it's fairly simple to validate-- just not with regex.

With regex; I'd just test ([^]+)@([^]{1,255}). Or with JS: /(.+)@(.{1,255})/su.