Java 字符串反向引用在GXT服务器模式下不起作用,但在GXT开发模式下起作用

Java 字符串反向引用在GXT服务器模式下不起作用,但在GXT开发模式下起作用,java,string,gwt,gxt,Java,String,Gwt,Gxt,我有下面的代码,它在GXT开发模式下工作得非常好。但它不能在GXT服务器模式下工作。你能帮我解决这个问题吗 String stringValue = "Servicing"; if (stringValue != null && !stringValue.isEmpty()) { String newData = stringValue.replaceAll("(?i)servi", "<mark>$0</mark>"); System.o

我有下面的代码,它在GXT开发模式下工作得非常好。但它不能在GXT服务器模式下工作。你能帮我解决这个问题吗

String stringValue = "Servicing";
if (stringValue != null && !stringValue.isEmpty()) {
    String newData = stringValue.replaceAll("(?i)servi", "<mark>$0</mark>");
    System.out.println(newData);
}
stringValue=“服务”;
if(stringValue!=null&&!stringValue.isEmpty()){
String newData=stringValue.replaceAll(“(?i)servi”,“$0”);
System.out.println(newData);
}

您必须使用GXT的RegExp和Matcher使其在服务器模式下工作