Regular Expressions
Andrew Kuchling
akuchlin at mems-exchange.org
Tue Aug 1 13:03:11 EDT 2000
nick_knight at my-deja.com writes:
> interpriter everytime I need to do a match. How do you call the regular
> expression matching directly from C++.
I wouldn't recommend doing that, because the PCRE engine has been
hacked in various Python-specific ways that will assume the rest of
the interpreter is there. I'd suggest either using a separate regular
expression library (perhaps an unmodified copy of PCRE, or your
platform's regex implementation), or going through Python to use the
re module.
--amk
More information about the Python-list
mailing list