public abstract class RegexUtil extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static org.apache.log4j.Logger |
logger |
private static org.apache.oro.text.regex.Perl5Matcher |
pm |
Constructor and Description |
---|
RegexUtil() |
private static final org.apache.log4j.Logger logger
private static final org.apache.oro.text.regex.Perl5Matcher pm
public RegexUtil()
public static boolean matches(java.util.Collection regexs, java.lang.String str)
Check to see if one of the regular expressions in a collection match an input string.
regexs
- The collection of regular expressions.str
- The string to check for a match.public static void addRegex(java.util.Collection list, java.lang.String regex)