Hi Jeff,
if (eregi("[0-9]", $string))
{$input = eregi("[0-9]",$string) }
This will match only a single digit at the start of a string. If you'd like to match all numbers within a string change to
if (preg_match("[0-9]+", $string))
{preg_match_all("[0-9]*", $string, $input) }
$input will then be an array containing all matches.
Sorry for the change from posix to perl but I'm more used to it 🙂
Greets,
Dominique