2016-06-13 67 views
0

如何追加命名爲結果字符串。所以最終輸出的每個工作區將如何更換一個特定的字符串中的整個字符串

String namespace = "@{XYZ/1.0}categories:"; 
      String result= "(\"workspace://123456\" AND \"workspace://55757575\")"; 

      (@{XYZ/1.0}categories:"workspace://123456" AND @{XYZ/1.0}categories:"workspace://55757575"); 

回答

0

如何使用replaceAll

result.replaceAll("\\\"workspace:", namespace + "\"workspace:"); 
相關問題