Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to check for special characters in javascript

var format = /[!@#$%^&*()_+-=[]{};':"|,.<>/?]+/;

if(format.test(string)){
  return true;
} else {
  return false;
}
 
PREVIOUS NEXT
Tagged: #check #special #characters #javascript
ADD COMMENT
Topic
Name
1+5 =