Regular Expressions

Aahz Maruch aahz at netcom.com
Tue Aug 1 11:49:19 EDT 2000


In article <8m658n$ff0$1 at nnrp1.deja.com>,  <nick_knight at my-deja.com> wrote:
>
>I am planning to embed Python into an app, wherby the app also needs to
>use regular expression matching insid the app - so it seems sencible to
>use the pythons own reg exp routines. I don't wish to invoke the
>interpriter everytime I need to do a match. How do you call the regular
>expression matching directly from C++.

Why don't you want to invoke the interpreter?  My understanding was that
once you initialized the interpreter, you incur little overhead for each
incremental use of it (of course, I could be wrong -- I haven't done any
embedding work).
--
                      --- Aahz (Copyright 2000 by aahz at pobox.com)

Androgynous poly kinky vanilla queer het    <*>     http://www.rahul.net/aahz/
Hugs and backrubs -- I break Rule 6

NOTE: end of September, Earthlink kills Netcom.  My new permanent address is 
aahz at pobox.com.  I have not decided where to set my primary shell account.
Please do not send me e-mail condolences; my mailbox is already too big.



More information about the Python-list mailing list