As I've previously mentioned in another post.. Regexes blow my mind. Not good at em.

I was trying to make one to match an email addy and came up with:
^[A-Za-z0-9_\.-]+@[A-Za-z0-9_\.-]+[A-Za-z0-9_][A-Za-z0-9_]$
Now, this is pretty basic stuff, right? I mean, this particular use of a regex. But I can't figure it out.

Oddly enough, it doesn't appear to match email addresses at all! It does.. weird matches. For example, if the letter 'c' is in it, it is always false.

Can anyone please explain what I'm doing wrong?


-------------
I am the self-appointed God of needlessly complex mIRCscript.