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:
Your version isn't the same at all - \w allows letters digits and underscores anywhere, whereas the original is more subtle.
[ Parent
| on HN ]
... and ignoring case obviously gets us down here:
^[a-z]([a-z]+|\d+)@[a-z]+\.[a-z]+$