700字范文,内容丰富有趣,生活中的好帮手!
700字范文 > Java正则表达式 提取双引号中间的部分

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

时间:2021-06-23 09:24:23

相关推荐

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

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

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。