codice:
$str = "Linux and Mysql not Oracle or Unix. Andy or Nothing";
echo preg_replace("/\band\b|\bnot\b/i","",$str); //Linux Mysql Oracle or Unix. Andy or Nothing