字符串如下:http://10.81.1.1/dddd/index.hmtl&aa=1&test=2&daa=6&aaaaa=7
我想把&test后的字符串都用""代替,变成http://10.81.1.1/dddd/index.hmtl&aa=1
请问如何用replace,replaceall实现。
我想把&test后的字符串都用""代替,变成http://10.81.1.1/dddd/index.hmtl&aa=1
请问如何用replace,replaceall实现。
调试欢乐多
s = s.replaceAll("&test.*", " ");
System.out.println(s);