If you do not want to go with a fullblown search engine, you might want to have a look at Regex::PreSuf. It will let you combine your list of phrases into one fairly efficient regexp. Not sure how will the module and then Perl handle thousands of phrases, though.
Jenda
Enoch was right!
Enjoy the last years of Rome.
In reply to Re: REGEX or Not to REGEX for many items
by Jenda
in thread REGEX or Not to REGEX for many items
by r1n0
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |