in reply to REGEX or Not to REGEX for many items
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 Section
Seekers of Perl Wisdom