<?php $test = "test dddd 3323fff new 83sdf"; $regex = '#^(.*\d?)[^\d]*$#'; var_dump(preg_match($regex, $test, $matches), $matches);
You have javascript disabled. You will not be able to edit any code.