485-word-cost-22.jpg
Related questions
-(/d+).jpg
$s = "485-word-cost-22.jpg"; $r = preg_replace('/^.*\-(\d+)\.jpg$/', '$1', $s); echo($r);
Find more questions by tags PHP