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

Re: more regex woes...

2002-07-31 Thread John W. Krahn
Joe Sprankle wrote: > > Hi all, Hello, > 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 worke

RE: more regex woes...

2002-07-31 Thread Bob Showalter
> -Original Message- > From: Joe Sprankle [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, July 31, 2002 1:44 PM > To: [EMAIL PROTECTED] > Subject: more regex woes... > > > Hi all, > I am brand new to perl, and programming at that. I'm learning > alot

RE: more regex woes...

2002-07-31 Thread Mark Anderson
Looks to me like you understand it better than I did. I don't understand your question. /\/\ark -Original Message- From: Joe Sprankle [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 31, 2002 10:44 AM To: [EMAIL PROTECTED] Subject: more regex woes... Hi a

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