<?php $string = 'PT3M'; $pattern = '/[0-9]+/i'; $replacement = '#'; echo preg_replace($pattern, $replacement, $string);
You have javascript disabled. You will not be able to edit any code.