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;
In reply to minimal greed by gregor-e
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |