gregor-e has asked for the wisdom of the Perl Monks concerning the following question:
to end up with $1 eq "one\nthree". Instead, it ends up that $1 eq "one\ntwo\none\nthree" How do I minimize preceeding greed?$source = "one\ntwo\none\nthree"; $source =~ m/(one.*?ee)/s;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: minimal greed
by chromatic (Archbishop) on Feb 15, 2000 at 03:19 UTC | |
|
Re: minimal greed
by japhy (Canon) on Feb 14, 2000 at 08:52 UTC |