Как проверить на наличие специальных шаратеров с пробелами JavaScript

var format = /[ `!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?~]/;
//            ^                                       ^   
document.write(format.test("My@string-with(some%text)") + "<br/>");
document.write(format.test("Mystringwithspaces") + "<br/>");
document.write(format.test("MyStringContainingNoSpecialChars"));
 Run code snippetHide results
Unsightly Unicorn