When a post starts to contain more than one previous message or pane, top
posting is much easier to follow than bottom posting. With bottom posting,
it's hard to find the most recent message.

--Bob van Keuren
San Diego


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of $Bill
Luebkert
Sent: Tuesday, October 04, 2005 1:42 AM
To: Chris Cappelletti
Cc: [email protected]
Subject: [lists] Re: (no subject)


Foo Ji-Haw wrote:
> I think the tricky part is that spaces may appear within the "..." field.
In
> which case the pattern may well be:
>
/^"([^"]+)"\s+"([^"]+)"\s+"([^"]+)"\s+"([^"]+)"\s+"([^"]+)"\s+"([^"]+)"\s+"(
> [^"]+)"\s+"([^"]+)"\s+"([^"]+)"\s+"([^"]+)"\s+"([^"]+)"\s+"([^"]+)"\s+$/)
>
> But I'm a rookie on regex, so this may not be optimal.

You're a rookie on posting.  Please don't top-post and trim the prior posts.

You can just adjust the split:

foreach (@lines) {
        my @flds = split /"\s+"|^"|"$/; # remove "s - column0 will now be empty
        if ($flds[6] eq 'pink' and $flds[8] eq 'blue') {
                print "found one: $_\n";
        }
}

--
  ,-/-  __      _  _         $Bill Luebkert    Mailto:[EMAIL PROTECTED]
 (_/   /  )    // //       DBE Collectibles    Mailto:[EMAIL PROTECTED]
  / ) /--<  o // //      Castle of Medieval Myth & Magic
http://www.todbe.com/
-/-' /___/_<_</_</_    http://dbecoll.tripod.com/ (My Perl/Lakers stuff)
_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs




_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to