<?php $regex = '#\d\s-\s\d#'; $string = '66 hello 2.3 - 44 world 99 -8 another dash - but no numbers'; echo preg_replace($regex, '-', $string);
You have javascript disabled. You will not be able to edit any code.