On 11/25/06, Bill McCarthy <[EMAIL PROTECTED]> wrote:
    let a = 'a\b'
    echo substitute(a,'\','/','')

Backslash is special not only for "...". It is special in regex.
Thus when you want to match literal [\] in regex inside
'', you double it:
   echo substitute(a,'\\','/','')
If you use regex in "...", you quadruple it:
   echo substitute(a,"\\\\",'/','')

Yakov

Reply via email to