RPM Community Forums

Mailing List Message of <rpm-devel>

Re: Generalizing EVR comparison precedence, preliminaries

From: Jeff Johnson <n3npq@mac.com>
Date: Fri 02 Jan 2009 - 04:49:23 CET
Message-id: <F68C425A-FB9F-4D13-BB78-3866D93B71EE@mac.com>

On Jan 1, 2009, at 8:18 PM, Michael Jennings wrote:

>>
>> But I've never seen nor used RE constructs like
>> 	^(?:......)?....$"
>> ever in my life.
>
> I'm pretty sure RSE gave you a PCRE, not an ERE.  (?:) inhibits the
> assigning of the contents of the parenthesized subgroup to a $123 (or
> \123) variable.  I don't believe ERE has anything similar,
> unfortunately.
>

Thanks. One of these days I keep meaning to learn PCRE and perl ...

But I still have some other fundamental misconception:

==> xx 3 "4:5.10.0-49.fc10"
        0 [0,1) "4"
        2 [0,1) "4"
       59 [0,-1) "4:5.10.0-49.fc10"
==> xx 3 "0:5.005"
        0 [0,1) "0"
        2 [0,1) "0"
       59 [0,-1) "0:5.005"

as only the 1st pattern is still matched using PCRE instead of ERE.

Time to roll up the sleeves, simplify, and figger out what I miss.

73 de Jeff

  • application/pkcs7-signature attachment: smime.p7s
Received on Fri Jan 2 04:49:28 2009
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.