📌  相关文章
📜  提取所需的组,如下所示: - 无论代码示例

📅  最后修改于: 2022-03-11 14:58:53.248000             🧑  作者: Mango

代码示例1
final Pattern pattern = Pattern.compile("(.+?)", Pattern.DOTALL);
final Matcher matcher = pattern.matcher("String I want to extract");
matcher.find();
System.out.println(matcher.group(1)); // Prints String I want to extract