One of the things on my to do list is to read 'Mastering Regular Expressions', of which is moving up the list but waiting for a few free days I assign to get through it.

In the meantime instead of asking friends who know regexp well, I've found http://www.txt2re.com/ , of which takes a string input and lets you generate a regexp from what output you want.
It's not elegant but it works!