<?php
$re = '/(\s"\S+"(?:\p{P}|\s))|"/';
$str = 'this i"s a "test" word i"s"s. NOt a "test".';
$subst = '$1';

$result = preg_replace($re, $subst, $str);

echo $result;