java 中 正则 matches vs find

find()方法在部分匹配时和完全匹配时返回true,匹配不上返回false;

matches()方法只有在完全匹配时返回true,匹配不上和部分匹配都返回false。

原文地址:https://www.cnblogs.com/brookin/p/10473732.html