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