Parsed regular expressions

Started by Jeff, March 01, 2008, 05:43:31 PM

Previous topic - Next topic

Jeff

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
Jeff

=====

Old programmers don\'t die. They just parse on...



http://artfulcode.net\">Artful code

Lutz

#1
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