http://www.perlmonks.org?node_id=314957


in reply to Re: Re: multi line matching problem
in thread multi line matching problem

For the record, this is the testing that I did, which works fine by me.
$data = "15 65\n35 6\n445 34,546 59034584\n54 3,450 805;5409 + 8534\n\nStuff..."; print ($data); print ("\nChainging now\n\n"); $data =~ s/\s+|\n/ /g; print ($data);
Sorry if I misunderstood the question, and I'll take the hit on the greedy statement, perhaps I should have said greedy only for space characters, which is what is wanted....