[javascript学习指南]Java使用正则表达式截取重复出现的XML字符串功能示例

更新时间:2021-08-12    来源:正则表达式    手机版     字体:

【www.bbyears.com--正则表达式】

publicstaticvoidmain(String[] args)throwsDocumentException {
    String s ="";
    String regEx ="";
    Pattern pat = Pattern.compile(regEx);
    Matcher mat = pat.matcher(s);
    while(mat.find()){
      System.out.println(mat.group());
    }
}

输出结果:


本文来源:http://www.bbyears.com/aspjiaocheng/135541.html

热门标签

更多>>

本类排行