How to append namespace for every workspace in result string .so final output will be
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");
如何使用replaceAll
?
result.replaceAll("\\\"workspace:", namespace + "\"workspace:");
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.