public abstract class MatchUtils extends Object
| Constructor and Description |
|---|
MatchUtils() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
match(Collection<String> patterns,
String str)
匹配文件
|
static boolean |
match(String pattern,
String str) |
static boolean |
match(String pattern,
String str,
boolean ignoreCase)
高级匹配,同时支持正则与通配符*
|
public static boolean match(String pattern, String str, boolean ignoreCase)
pattern - 匹配串str - 字符串ignoreCase - 忽略大小写public static boolean match(Collection<String> patterns, String str)
patterns - 匹配串集合str - 目标字符串Copyright © 2021–2022 EasyJ开源社区. All rights reserved.