In Java, I\'ve a File-Name-String. There I want to replace all illegal Characters with \'_\', but not a-z, 0-9, -,. and <
a-z
0-9
-
.
for NodeJS (v10), the function replaceAll() is undefined!
The solution is:
let newName = myString.replace(/[^a-zA-Z0-9.-]/gi, "_");