<?php $str = 'this i"s a "test" word'; echo preg_replace('/(?<!\s)"(?!\s)/', '', $str);
You have javascript disabled. You will not be able to edit any code.