Aziz Saleh wrote: > This pattern should do the trick (taken from SO + modifications): > > http://www.rubular.com/r/JJfQkmoDHr Yes, I'm sure it will - also a perfect example of why I suggested splitting into multiple regexes for clarity :-) It obviously depends on how well versed you are with regexes. /Per -- Per Jessen, Zürich (1.0°C) http://www.dns24.ch/ - free dynamic DNS, made in Switzerland. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php