zl程序教程

您现在的位置是:首页 >  后端

当前栏目

Java 正则表达式最简单的例子详解编程语言

JAVA正则表达式编程语言 详解 简单 例子
2023-06-13 09:20:30 时间
public static void main(String args[]) { String str="For my money, the important thing "+ "about the meeting was bridge-building"; String regEx="a|f"; //表示a或f Pattern p=Pattern.compile(regEx); Matcher m=p.matcher(str); boolean result=m.find(); System.out.println(result); }

10896.html

cjava