Your second RegEx assumes the <body> and </body> tags are on the same line... and this is not always true.. check this for a better(?) solution..
In reply to Re: Re: Removing duplicate line
by Chady
in thread Removing duplicate line
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |