I'm building a File manager with jQuery. Users can create folders and upload files. I need a Regual Expression (javascript) to check if the entered folder-name or the uploaded file-name is web-save. (no special chars or spaces are allowed)
The name should only contain alphanumeric values (a-z,A-Z,0-9), underscores (_) and dashes(-)