Regex to match only string of symbols
Regex to match only string of symbol
JavaScript
/*regex to match only string of symbols*/
var x ="%%^^** ### "
var sym=/[-!$%^&*()#@©_+|~=`{}\[\]:";'<>?,.\/]?[\w]/;
if(!x.match(sym))
alert("matched");
else
alert("not matched");