Learning About Greed
Why does the example not work as expected?
Greediness limitation symbol is ? (not like quantifier).
Previous slide
Next slide
Back to first slide
View graphic version
Notes:
perl -ne "print $1 if m/(^own.*I)/" testfile.txt
perl -ne "print $1 if m/(^own.*?I)/" testfile.txt