title: Find a match from a list of regular expression in java
body: <p>I have a list of regular expressions in the form of [a-z]* (for example your*). I need to find the possible matches for words read from a regular text file from the list of regular expressions. I can use the Pattern class for each of the list items and then use matcher to match the word with each member of the list, but this process seems time consuming. The regex list is big (around 2500 expressions) and the number of words I need to match is also large (in millions) so I need something fast- and it should be in Java. Is there a better way to search for a regex match for a word from a list of regexes? </p>