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字符串子串
最新推荐文章于 2024-09-03 11:03:26 发布