On Thu, Jun 23, 2011 at 15:39, Pedro F. Giffuni <[email protected]> wrote: > > --- On Thu, 6/23/11, Mathias Bauer <[email protected]> wrote: > ... > >> >> You are talking about the list of external source tarballs? > > Yes, my mailer ate the original reply, sorry. > > Anyways ... > > I looked at the RegExp stuff, as I promised. > > OpenOffice has a C++ interface to GNU regex so Google's > RE2 seemed like a natural fit there. Unfortunately I see > TextSearch::RESrchBkwrd in textsearch.cxx so I assume we > need backreferences. The Re2 website says: > > "If you absolutely need backreferences and generalized > assertions, then RE2 is not for you, but you might be > interested in irregexp, Google Chrome's regular expression > engine." > > irregexp replaced PCRE and is mentioned here: > http://blog.chromium.org/2009/02/irregexp-google-chromes-new-regexp.html > > And the code, integrated in chrome's v8, is here: > http://v8.googlecode.com/svn/trunk/src/ regex-* > > It's also C++ and it's under a BSD license. I couldn't find > it as an independent package so someone that actually knows > well C++ will have to do the fun part. Well, at least it's > much better than writing our own ;-).
PCRE also has C++ wrappers, and *is* packaged up and delivered as a library. Cheers, -g
