$regs is an array not a string !
try print_r or var_dump to determine $regexp's content
Tim Van Wassenhove wrote:
In article <[EMAIL PROTECTED]>, Bruce wrote:
$file = ".txt";
ereg("(\.)([a-z0-9]{3,5})$", $file, $regs);
echo " ww = ".$regs. "";
i'm trying to figure out how to get the portion of
In article <[EMAIL PROTECTED]>, Bruce wrote:
> $file = ".txt";
>
> ereg("(\.)([a-z0-9]{3,5})$", $file, $regs);
> echo " ww = ".$regs. "";
>
>
> i'm trying to figure out how to get the portion of the regex that's the
> "extension" of the file. my understanding of the docs, says that the
> "ex
2 matches
Mail list logo