Answers for "how to search for special characters in regex js"

1

regex special characters javascript

var regex = /^[a-zA-Z0-9!@#\$%\^\&*\)\(+=._-]+$/g
Posted by: Guest on July-27-2020
1

regex to check if string contains special characters javascript

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

Code answers related to "how to search for special characters in regex js"

Code answers related to "Javascript"

Browse Popular Code Answers by Language