public class RegexUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
matchesAny(String str,
List<String> regexes)
Returns true if the string matches (full match) any of the specified regexes.
|
static boolean |
matchesAny(String str,
List<String> regexes,
boolean fullMatch)
Returns true if the string matches any of the specified regexes.
|
static boolean |
matchesAny(String str,
String... regexes)
Returns true if the string matches any of the specified regexes.
|
public static boolean matchesAny(String str, String... regexes)
str - the string to matchregexes - the regexes used for matchingpublic static boolean matchesAny(String str, List<String> regexes)
str - the string to matchregexes - the regexes used for matchingpublic static boolean matchesAny(String str, List<String> regexes, boolean fullMatch)
str - the string to matchregexes - the regexes used for matchingfullMatch - if the entire string should be matchedCopyright © 2018 CrafterCMS. All rights reserved.