[Boulder.pm] perl/HTML/XHTML

Walter Pienciak walter at frii.com
Fri Oct 18 12:30:52 CDT 2002


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




More information about the Boulder-pm mailing list