Boo*_*eoo 4 groovy escaping slash backslash
你会如何/用\Groovy 替换?这就 "//10.1.1.1/temp/test"变成了"\\10.1.1.1\temp\test".
/
\
"//10.1.1.1/temp/test"
"\\10.1.1.1\temp\test"
"//10.1.1.1/temp/test".replaceAll(/'\\/'/,'\\')< - ?不起作用
"//10.1.1.1/temp/test".replaceAll(/'\\/'/,'\\')
有没有人有想法?
谢谢你的回答.
ems*_*tol 11
看看这个"//10.1.1.1/temp/test".replaceAll("/","\\\\")."\\\\"做出一个反斜杠.
"//10.1.1.1/temp/test".replaceAll("/","\\\\")
"\\\\"
归档时间:
14 年,7 月 前
查看次数:
9087 次
最近记录:
10 年,4 月 前