8 ms·
... and ignoring case obviously gets us down here: ^[a-z]([a-z]+|\d+)@[a-z]+\.[a-z]+$
by simpleigh 13y ago
... and ignoring case obviously gets us down here:
^[a-z]([a-z]+|\d+)@[a-z]+\.[a-z]+$
- irahul 13y agoYes. If you are going for equivalent, this would be it: pat = re.compile(r'^ [a-z] [a-z0-9]* @ [a-z]+ \. [a-z]+ $', re.I | re.X) I took a few liberties in crafting the reduction.