Answered
To remove all forbidden characters from a filename, what do I write with just one regular?
All forbidden characters:
? \ |":*/<>/ \r \n
Why doesn't this work:
myName.replace(/[\?\*\/\:\|\<\r\n\>\"\\]/,'')
And separating one at a time works:
myName.replace(/\? /, '').replace(/\r/, '').replace(/\*/, '');
