Answers for "preg_match for a-z with special characters / in php"

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 "preg_match for a-z with special characters / in php"

Browse Popular Code Answers by Language