preg syntax is different to ereg (which you are using).  You also need to
provide an output variable.

This would work:

preg_match( "/[0-9]+/", $input, $output );

--
Matt

"Carl E Shmidt" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Now I'm looking to find 1 or more digits in an input:
>
> preg_match("[[:digit:]]",$valToEval);
>
> I'm passing the value "12" and this thing still returns 0.  What's going
on?
>
> Carl
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to