newLISP Fan Club

Forum => Anything else we might add? => Topic started by: Jeff on March 01, 2008, 05:43:31 PM

Title: Parsed regular expressions
Post by: Jeff on March 01, 2008, 05:43:31 PM
Lutz,



Does the interpreter do any caching of parsed regular expressions (to avoid having to reparse each string)?  If not, could you give us access to a function that would let us store a compiled regex for repeated use?  You could even hide the implementation in a built-in foop context :).



Jeff
Title:
Post by: Lutz on March 01, 2008, 06:14:21 PM
Yes, since version 7.2 (Oct 2003) newLISP does cache the last compiled regex pattern, so on repeated use the same pattern gets parsed and compiled only once.



Lutz