51,410
社区成员
发帖
与我相关
我的任务
分享 String s = "[id0label\"Topology\"graphics[x536.0y115.0w90.0h30.0type\"rectangle\"fill\"#FFCC00\"outline\"#000000\"]LabelGraphics[text\"Topology\"fontSize12fontName\"Dialog\"anchor\"c\"]]";
String s1="graphics[";
String s2="]LabelGraphics";
System.out.println(s.substring(s.lastIndexOf(s1), s.lastIndexOf(s2)));