I can do regular expressions, but I need to go into an altered state, remember what it does after I encoded it.
Here is a simple PHP function that you can use ...
function findFirstNum($myString) { $slength = strlen($myString); for ($index = 0; $index < $slength; $index++) { $char = substr($myString, $index, 1); if (is_numeric($char)) { return $index; } } return 0;
Profperry
source share