in reply to Regex libraries
It depends on your requirements. You didn't state them explicitly but presumably performance is more important to you than portability and features. PCRE is much more portable than boost, is very widely used in high profile products (PHP, Python, Apache, ...), indeed it's a de facto standard.
One possibility is to support both boost and PCRE. As for resources required to add PCRE, I added PCRE to our cross-platform library (11 different platforms) in, oh, a day or so. It is ANSI C and built and ran fine on all 11 platforms with no problems. Compare that to stlport which has been a portability nightmare for us, taking months of effort. Now, boost is a fine library, written by ANSI C++ experts ... but are they regex experts?
Out of curiosity, which compilers/platforms are you currently supporting with boost?
Update:
As I was testing this thing I found some limitations: Lookaheads, controlling greedy quantifier, ...
I've never used the boost regex library but am keenly interested in it and just took a look at its doco, which states that it supports both perl5-style lookahead assertions (see "Forward Lookahead Asserts" section) and non-greedy quantifiers (see "Non-greedy repeats" section). Can you give more details of the problems you were having with these?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Regex libraries
by Schuk (Pilgrim) on Dec 30, 2004 at 12:27 UTC | |
by Anonymous Monk on Dec 30, 2004 at 14:49 UTC | |
by Schuk (Pilgrim) on Dec 30, 2004 at 17:26 UTC | |
by Anonymous Monk on Dec 30, 2004 at 17:49 UTC | |
by eyepopslikeamosquito (Archbishop) on Dec 30, 2004 at 21:09 UTC |