News for hackers. Stuff that matters.
Re:I don't know Regex by simpleigh on Tuesday September 03, 2013 @04:26AM (#6319729)
Unless I'm being daft, it can't be reduced to that at all. Dropping matching brackets, removing redundant {1,1} blocks, and escaping the \. we get down to:

    ^[A-Za-z]([A-Za-z]+|\d+)@[A-Za-z]+\.[A-Za-z]+$
Your version isn't the same at all - \w allows letters digits and underscores anywhere, whereas the original is more subtle.
Re:I don't know Regex by simpleigh on Tuesday September 03, 2013 @04:33AM (#6319757)
... and ignoring case obviously gets us down here:

    ^[a-z]([a-z]+|\d+)@[a-z]+\.[a-z]+$
Re:I don't know Regex by irahul on Tuesday September 03, 2013 @04:46AM (#6319795)
Yes. 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.