《正则表达式》正则表达式

    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

猜你喜欢

转载自blog.csdn.net/kaige8312/article/details/91455378