There are several things you can do for efficiency: not much for elegance.
Not all these will help or may apply. For instance, a parser may have fixed priorities for matches, preventing use of #5. As for the others, Benchmark. Strategy #4 is observed by the big alternation, so should be used in any iterative scheme, too..
Update: Bah, underspecified. It sounds like you want an rdbms and DBI to store your data. RMGir's hash idea is good too.
After Compline,
Zaxo
In reply to Re: Bulk Regex?
by Zaxo
in thread Bulk Regex?
by meetraz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |