<?php $theWordCleaned="c like c's"; $a=array("/\bc's\b/", "/\bc\b/"); $b=array("XcX", "XCX"); echo preg_replace($a, $b, $theWordCleaned);
You have javascript disabled. You will not be able to edit any code.