<?php $str = "D-29834"; $result = preg_replace("/[^0-9]/", "", $str); echo $str;
You have javascript disabled. You will not be able to edit any code.