si il pattern era sbagliato quello giusto era: (\bfirefox|\bpmwfx\b) avevo copiato male e poi dovevo mettere tutto in minuscolo.
Ora però ho un altro problema:
Codice PHP:
<?PHP
$str_reg="(msn)[ ]*\d";
$user_agent="Mozilla/5.0 (X11; U; Linux x86_64; it; rv:1.9.0.8) Gecko/2009032712 Ubuntu/8.10 (intrepid) Firefox/3.0.8";
$ris=preg_match(strtolower($str_reg), strtolower($user_agent));
echo($ris);
?>
Mi da errore...
codice:
Warning: preg_match() [function.preg-match]: Unknown modifier '[' in C:\Inetpub\vhosts\akkattp.com\subdomains\stat\httpdocs\provaUserAgent.php on line 5
Eppure anche questo pattern l'ho preso dal sito...