my string is "\upload\document\file.txt", i want to remove the "\upload" part in that string with jQuery. I try this one but it does not work:
var filePath = "\upload\document\file.txt";
filePath = filePath.replace('\upload', '');
console.log(filePath);