我有一个字符串"Hello" hello
(包括引号)的字符串,我只是想有引号的Hello但不包括引号掌握行情
我尝试使用正则表达式,但它永远不会找到报价即时通讯猜测
String s = new String("string");
Pattern p = Pattern.compile("\"([^\"])\"");
Matcher m = p.matcher(n);
while (m.find()) {
s = m.group(1);
}
while循环从未得到执行,建议?
男孩,这是肯定的[类似于这个问题](http://stackoverflow.com/questions/5745562/removing-quotes-from-string/5745625#5745625)! – tchrist 2011-04-21 17:00:00
这是一个正则表达式问题,它们都是相似的! :) – 2011-04-21 17:17:26