我有以下代码,可以在 GXT 开发模式下完美运行。但它不能在 GXT 服务器模式下工作。你能帮我解决这个问题吗?
String stringValue = "Servicing";
if (stringValue != null && !stringValue.isEmpty()) {
String newData = stringValue.replaceAll("(?i)servi", "<mark>$0</mark>");
System.out.println(newData);
}
最佳答案
您必须使用 GXT 的 RegExp 和 Matcher 才能使其在服务器模式下工作。
关于java - 字符串反向引用在 GXT 服务器模式下不起作用,但在 GXT 开发模式下起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43256301/