> }
> elseif( preg_match( "/^\d+$/", $arg[$i], $matches ) )
Isn't this \d+ matching ----------^
> {
> $value = $matches[0];
> }
> elseif( preg_match( "/(div\d|prem)/", $arg[$i], $matches ) )
the \d in this-----------------^------------^
And the | is using '\d' and 'prem'. It probably should be "/(div\d)|prem/
Unless those parens are part of the expression. Then maybe "/\((div\d)|prem\)/"
MD
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]