On Fri, 18 Oct 2002, Keanan Smith wrote: > $Content =~ s/\n+(?!(?:(?!<pre).)*<\/pre)/\n/gsi; > > Remove all newlines that aren't in <pre>...</pre> tags That is a nifty regex. Thanks. Walter