You know, one day I'll put everything I want into one post.
Anyway, the ereg functions are POSIX regex's which are a kind of universal standard... the Perl supported regex's are extended in alot of neat ways, included the ability to do non-greedy matching which eventually you'll care about for some regular expression or another. Oh, and you can do backtracking, so if you wanted to capture someones email and easily refer back to the part before the @ symbol, it would be trivial.
Second... as always, the PHP manual is a great resource
And another page I use once'n awhile when I'm stuck on basic syntax
Lastly,
If you've learned about them before, One thing to keep in mind when designing complex regular expressions is that regex's are really just FSM's, so if you can break your problem down into a problem solvable by an FSM instead you're golden... I find that sometimes that approach is easier. For example... in your above stated problem you know you have three big states with different exits (each of which can be broken down into two or three states themselves)
before the @ symbol, the @ symbol, and after the @ symbol
And then the last thing I'll say after a quick glance at your first approach. Usually something like [^..] will not work for your problem. That particular approach won't work for alot of reasons (puting the same character in a list twice is meaningless), but saying NOT something when it's surrounded by allowing that same something, will likely just advance your FSM one state, at which point it won't match.
I don't think that's clear so let me illustrate... You've told your machine you want any characters included a period one or more times, followed by no double periods one or more times, followed by any characters including a period one or more times
So now, it sees
ab..cd
It's going to match the d as the last chunk (any character one or more times)
the c as the second chunk (no double periods)
and ab.. as the first chunk (any character one or more times)
Anyway, I hope that's helpful for you, regex's are a ton of fun and amazingly useful
-Rob