取双引号\“双引号之间\“之间的字符串
作者:互联网
public static void main(String[] args) {
// TODO Auto-generated method stub
String a="取双引号\"双引号之间\"之间的字符串";
a.substring(a.indexOf("\"")+1, a.lastIndexOf("\""));
System.out.println( a.substring(a.indexOf("\"")+1, a.lastIndexOf("\"")));
}
标签:lastIndexOf,String,双引号,indexOf,substring,之间,字符串 来源: https://blog.csdn.net/qq_45064695/article/details/120898774