fixed preg_match for msg -- wasn't matching quotes