java正则表达式

用到类有:java.util.regex.Pattern;java.util.regex.Matcher java Pattern类的做用在于编译正则表达式后建立一个匹配模式. Matcher类使用Pattern实例提供的模式信息对正则表达式进行匹配 Pattern complie(String regex) 因为Pattern的构造函数是私有的,不能够直接建立,因此经过静态方法compile(S
相关文章
相关标签/搜索