REGEX PARTAIOS ESPECIAIS JavaScript
var regex = /^[a-zA-Z0-9!@#\$%\^\&*\)\(+=._-]+$/g
Victorious Vole
var regex = /^[a-zA-Z0-9!@#\$%\^\&*\)\(+=._-]+$/g
var format = /[ `!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?~]/;
// ^ ^
document.write(format.test("My@string-with(some%text)") + "<br/>"); //true
document.write(format.test("My string with spaces") + "<br/>"); //true
document.write(format.test("MyStringContainingNoSpecialChars")); //false
let stringVal = "Some text value";
/[^a-zA-Z0-9]+/g.test(stringVal)