Answers for "have one special character js"

-2

javascript have special characters

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 "have one special character js"

Code answers related to "Javascript"

Browse Popular Code Answers by Language