Intanto grazie per la risposta.
Allora ho fatto così
codice:
if (!preg_match("#^[a-zA-Z0-9 \.,\?_/'!£\$%&*()+=\r\n-]+$#", $msg)) { 
        // Everything ok. Do nothing and continue 
    } else { 
        echo "Message is not in correct format.";
		
		}
Come posso modificare in modo che non accetti la parola
http
Grazie