RE: more regex woes...

2002-07-31 Thread Joe Sprankle
>What is "Robert's Perl Tutorial"? A good perl tutorial that I heard of on this list after lurking for awhile. I believe the link is http://www.sthomas.net/roberts-perl-tutorial.htm >What don't you understand? Why they capture what they do? >They all capture the leftmost, longest substring match

more regex woes...

2002-07-31 Thread Joe Sprankle
Hi all, I am brand new to perl, and programming at that. I'm learning alot from Robert's Perl Tutorial and I was hoping someone culd possibly clear up the following from the tutorial: $_='My email address is <[EMAIL PROTECTED]>.'; print "Match 1 worked :$1:" if /(<*)/i; $_='.'; print "Match 2 wo