Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php preg_match special characters

  $string="sadw$"
  if(preg_match("/[[^'£$%^&*()}{@:'#~?><>,;@|-=-_+-¬`]]/", $string)){
   //this string contain atleast one of these [^'£$%^&*()}{@:'#~?><>,;@|-=-_+-¬`] characters
  }
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php #special #characters
ADD COMMENT
Topic
Name
1+4 =