public static void main(String[] args) {
String cleanKey="peopleList::name=.*";
String str="peopleList::name=张_findByName_cache";
Pattern pattern = Pattern.compile(cleanKey);
Matcher matcher = pattern.matcher(str);
System.out.println(matcher.matches());
}
https://www.cnblogs.com/lzq198754/p/5780340.html