Joe Freeman

Regular Expression implementation details

Discussion created by Joe Freeman on Feb 16, 2009
Latest reply on Feb 17, 2009 by Andrei Palskoi

Are there "good" and "bad" ways to use "RegularExpression" in blaze 6.5?


We're trying to figure out how regular expressions are managed in blaze. We have a heap dump that implies it contains data structures that can grow over time  It almost looks like the NdRegularExpression retains the values that it has matched against.  The NdRegularExpression class is obfuscated so we can't see what all the data structures hold. In some places we define regular expressions as global variables and then match against those. In others, we create the Regular Expressions inside a rule body and have if/then/else statements inside the rule body that use the created regular expression.