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