<?php $string ='2firstword21mytargetstring'; if (preg_match ('/\d(\D*)$/', $string, $match)) var_dump($match[1]);
You have javascript disabled. You will not be able to edit any code.