<?php echo "regex!"; $term = "16656400-7"; $term = preg_replace('/-[\dkK]/', '', $term); $term = preg_replace('/-/', '', $term); echo $term;
You have javascript disabled. You will not be able to edit any code.