Recent perl versions include the qr// operator that allows to precompile regexp. It is what you should use when you have speed problems with dynamically generated regexps.
In reply to Re^3: Regex Tuning
by salva
in thread Regex Tuning /(?:(?:foo[34])|(?:bar[12]))\.txt/io
by songahji
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |