>>>>> "Andrei" == Andrei Bazhgin <after at nan2d.com> writes:

    Andrei> Hi. 

    Andrei> I am having some problems getting a PCRE to match more
    Andrei> then one newline.  Basicaly, I am filtering text ... and
    Andrei> there can be no more then one newline at any part of the
    Andrei> text.

In the old days when I needed to exchange stuff with someone using a
MAC, I needed to whack my double new lines.  I simply used this:

while (<STDIN>) {
    if ($_ eq "\n") {
	print;
    }
    else {
	chop;
	print;
	print " ";		# replace newline with space
    }
}



_______________________________________________
TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
http://www.mn-linux.org tclug-list at mn-linux.org
https://mailman.real-time.com/mailman/listinfo/tclug-list