Check out Regexp::PreSuf and Regexp::Assemble. They combine lists of words or patterns into a hopefully more efficient pattern than a trivial ORed expression.
ihb
See perltoc if you don't know which perldoc to read!
In reply to Re: efficient method of matching a string against a list of substrings?
by ihb
in thread efficient method of matching a string against a list of substrings?
by diggler
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |