import java.util.regex.*;
class Regex1 {
public static void main(String args[]) {
String str = "For my money, the important thing ";
String regEx = "mo";
boolean result = Pattern.compile(regEx).matcher(str).find();
System.out.println(result);
}
}
java字符串子串
最新推荐文章于 2022-09-26 11:08:49 发布