public final class RegexHelper extends Object
Modifier and Type | Method and Description |
---|---|
static List<Pattern> |
compilePatternsFromList(List<String> list)
Compiles a list of regex into a list of patterns.
|
static boolean |
isMatch(Pattern pattern,
String subject)
Simple commodity method (also designed to increase readability of source
code, and to decrease import in the calling class).
|
public static List<Pattern> compilePatternsFromList(List<String> list)
list
- the regex listpublic static boolean isMatch(Pattern pattern, String subject)
pattern
- a compiled regex patternsubject
- a String to matchtrue
if there is a match; false
otherwiseCopyright © 2002-2015 InfoEther. All Rights Reserved.