Thanks Lindsay, your pattern worked like a charm. Now I've got another Perl problem, but hopefully I can solve it myself here. ... btw, did I mention I hate Perl. Regards, Burhan [ snip ] try this: >(<[^>]*>) [/snip]