in reply to Re: Bother (Re: Re: Split and empty strings)
in thread Split and empty strings
Gave the following:#!/usr/bin/perl -w $_ = "The quick\n\nbrown fox\njumped."; print "-------------\n"; foreach (/([^\n]*)/gm){ print "[$_]\n"; } print "-------------\n";
Same old problem ... new clothes.------------- [The quick] [] [] [brown fox] [] [jumped.] [] -------------
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Bother (Re: Re: Split and empty strings)
by chromatic (Archbishop) on Apr 11, 2001 at 00:44 UTC |