Java正则表达式, 提取双引号中间的部分

1
2
3
4
5
6
String str="this is \"Tom\" and \"Eric\", this is \"Bruce lee\", he is a chinese, name is \"李小龙\"。";
            Pattern p=Pattern.compile("\"(.*?)\"");
            Matcher m=p.matcher(str);
            while(m.find()){
                System.out.println(m.group());
            }

  

posted @   HarkLee  阅读(13374)  评论(0编辑  收藏  举报
努力加载评论中...
点击右上角即可分享
微信分享提示