in reply to Regular expression..
... this reminds me of a guy who used perltidy for beautifying php-code.
His biggest problem were the inline-comments and he used a regex to translate // to # and back... =)
Cheers Rolf