Perl: greedy vs lazy match

Perl tutoring: the tutor compares a greedy match with its corresponding lazy one.

argumentgreedylazy
e2ee9a/e\w*\d//e\w*?\d/
matche2ee9e2

Source:

roberts perl tutorial

McGrath, Mike. Perl in easy steps. Southam: Computer Step, 2004.

Jack of Oracle Tutoring by Jack and Diane, Campbell River, BC.

Leave a Reply