Answers for "php preg_match match special character exclude"

PHP
1

php preg_match special characters

$string="sadw$"
  if(preg_match("/[\[^\'£$%^&*()}{@:\'#~?><>,;@\|\\\-=\-_+\-¬\`\]]/", $string)){
   //this string contain atleast one of these [^'£$%^&*()}{@:'#~?><>,;@|\-=-_+-¬`] characters
  }
Posted by: Guest on June-11-2021

Code answers related to "php preg_match match special character exclude"

Browse Popular Code Answers by Language