RPM Community Forums

Mailing List Message of <rpm-devel>

Is there an implementation for PCRE <-> POSIX interconversion?

From: Jeff Johnson <n3npq@mac.com>
Date: Sat 19 Apr 2008 - 00:01:03 CEST
Message-Id: <F59F033C-2517-4969-BDF9-D8BD6C1E508F@mac.com>
I know that PCRE and POSIX are functionally equivalent.

But can the interconversion between PCRE <-> POSIX regexes be automated?

I'd love a general "have it your own way" RE interconversion
rather than have to choose either PCRE or POSIX regex dialect.

rpm got enuf Chauvinism problems in the packaging wars already
without adopting Yet Another War. I'd rather satisfy both needs than
choose one or the other regex dialect.

Personally, I ain't looked at perl since 1990, and I'm dearly hoping to
continue as an ignorant lazy schmuck.

But I'm sure I can learn PCRE if necessary.

Hmmm, I can likely wing it with
     http://www.phpguru.org/downloads/PCRE%20Cheat%20Sheet/PHP%20PCRE% 
20Cheat%20Sheet.pdf

FYI: There are multiple usage cases for patterns in rpm-5.2. Choose  
your dialect, and prepare
your arguments now.

73 de Jeff
Received on Sat Apr 19 00:01:26 2008
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.