<?php $origString = 'My-Cool-String - 201'; $newString = preg_replace("/-(?=.* -)/", ' ', $origString); echo $newString;
You have javascript disabled. You will not be able to edit any code.