哪位高人会正则表达式啊,想提取字符串中@ @之间的内容 正则表达式 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 Matcher m = Pattern.compile("@(.*?)@").matcher(a); while(m.find()){ System.out.println(m.group(1)); } String a="@12qq3@,,,@456@"; Matcher m = Pattern.compile("@(.*?)@").matcher(a); while(m.find()){ System.out.println(m.group(1)); } String a="@12qq3@,,,@456@";String[] arr=a.replace("@","").split("\\.{3}");System.out.println(Arrays.toString(arr)); m.group(1) 这个取出来 没有 @ 符号啊。。 不好意思,,我那个程序里面用的是m.group(0)谢谢啦! String a="@12qq3@,,,@456@"; Matcher m = Pattern.compile("@(.*?)@").matcher(a); while(m.find()){ System.out.println(m.group(0).replaceAll("@", "")); } ssh整合后出现问题 div 怎么用onblur事件 雪地里跪求 场景描述的 正确格式和 编写思路 崩溃中,weblogic+dwr,google上能查到的都试了,高分请教各位同仁了!!! 散分 了!!!!!在Eclipse中无法启动tomcat 请教如何生成等比缩短略图 请问如何查找windows2000的进程 jasper 怎么使用 ? 为了维护自己的权益,大家都有没有在自己做的网站上留后门啊??? 有对JSP标签库熟悉的吗? 我想实现一个这样的功能如何实现? JS获取<table>中<tr>的数据
while(m.find()){
System.out.println(m.group(1));
}
Matcher m = Pattern.compile("@(.*?)@").matcher(a);
while(m.find()){
System.out.println(m.group(1));
}
String[] arr=a.replace("@","").split("\\.{3}");
System.out.println(Arrays.toString(arr));
谢谢啦!
Matcher m = Pattern.compile("@(.*?)@").matcher(a);
while(m.find()){
System.out.println(m.group(0).replaceAll("@", ""));
}