[请教]如何使用replaceAll()方法替换字符串中“'”为“\'”
rt
[解决办法]
刚错了
System.out.println( "a 'bbbc 'dd 'ee ".replaceAll( " ' ", "\\\\ ' "));
发布时间: 2012-01-07 21:41:55 作者: rapoo
[请教]如何使用replaceAll()方法替换字符串中“'”为“\'”
rt
[解决办法]
刚错了
System.out.println( "a 'bbbc 'dd 'ee ".replaceAll( " ' ", "\\\\ ' "));