Regex becomes faster...
I have made an optimize() method for class Regex. It
causes the several patterns to run faster. For example, it causes
lists of words in parenthesis to match faster (it
builds a hashtable from the first letter of each word in the
list). Thus, the pattern "(Monday|Tuesday|Wednesday|Thursday)"
will match much more quickly. However, once optimize() has
run, you should not modify the contents of the ignoreCase flag.
Note that you can check to see whether you've done this with
the optimized() method.
Return to main page.