hi,
how to replace a hypen (-
) with a slash (\
) in javascript?
for example, i need to replace
C-MyDocuments-VisualStudio2008-MyProjects
with
C\MyDocuments\VisualStudio2008\MyProjects
i tried replace function such as variable.replace("-","\")
but it showed me error of unterminated string constant
i am working in VS 2008
Thanks