in reply to Re: Re: Regular Expression Pieces
in thread Regular Expression Pieces
my $x = "aabaab"; my ($y1) = $x =~ /([ab]+)/; my ($y2) = $x =~ /([ab]+?)/; print "$x -> '$y1' '$y2'\n";
------
We are the carpenters and bricklayers of the Information Age.
Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.
Please remember that I'm crufty and crochety. All opinions are purely mine and all code is untested, unless otherwise specified.
|
|---|