groovy or java: how can replace '\' with '\\' 'C:\www\web-app\StudyReports\test.bat'
- by john
hi,
this might be trivial (please forgive me for that)
but my eventual goal is to have a string like
def newline= 'C:\\www\web-app\StudyReports\\test.bat'
but my old line only have one '\',
i tried different ways of using the following
def newline=oldline.replaceAll(/\\/,'//')
but did not work at ...
could someone help me out.