Answers for "does string contain special charactors javascript"

-2

does string contain special charactors javascript

var format = /[ `!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?~]/;
//            ^                                       ^   
document.write(format.test("My@string-with(some%text)") + "<br/>");
document.write(format.test("My string with spaces") + "<br/>");
document.write(format.test("MyStringContainingNoSpecialChars"));
Posted by: Guest on November-15-2020

Code answers related to "does string contain special charactors javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language