Hi, > I still don't really understand *why* the above works but I'm trying > to pick it apart now. Whenever I have a doubt about regular expression, I use the regexp coach. It works on Windows, but I find it a very intelligent and usefull tool. http://weitz.de/regex-coach/ Best regards, Olivier