try
$part = ereg("([0-9]{1})-([0-9]*)-", $f, $regs);
your original exp was looking for 1 digit followed by a dash follwed by 1
digit followed by a dash
the * should match 0 or more occurences of the previous match ( in this
case 0 or more numbers )
you shouldn't need the {1} in there either.
morgan
At 09:36 AM 4/17/2001 -0400, Chad Day wrote:
>$part = ereg("([0-9]{1})-([0-9]{1,10})-", $f, $regs);
--
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]