Here is my code. I am trying to match this string with my regex but it fails everytime on my local xampp server and my dedicated server. Surprsingly when i test this on regex101 it works there somehow. Why ??
<?php
$str = "80 ×× ×× ×× ×× ××
×× ×× 91 94 ×× ××
";
echo strlen($str);
if (preg_match("/[0-9*+=\-#@×?]{2,3}[ \[\]().]{1,3}[0-9*+=\-#@×?]{2,3}[ \[\]().]{1,3}[0-9*+=\-#@×?]{2,3}[ \[\]().]{1,3}[0-9*+=\-#@×?]{2,3}[ \[\]().]{1,3}[0-9*+=\-#@×?]{2,3}/", $str)) {
echo "ok";
}else{
echo "no mto";
}
?>