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.
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....$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);
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: Re: multi line matching problem
by welchavw (Pilgrim) on Dec 16, 2003 at 03:15 UTC | |
by SquireJames (Monk) on Dec 16, 2003 at 03:26 UTC | |
by Roger (Parson) on Dec 16, 2003 at 04:08 UTC |
In Section
Seekers of Perl Wisdom