regex string1 (if match write ouput) regex string2 (if match ...) regex string3 (if match ...) regex string4 (if match ...)
It's usually faster to build one regex with four alternations and match that instead of matching four single regexes against a string.
In reply to Re^2: Optimizing string searches
by moritz
in thread Optimizing string searches
by cool256
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |