[PHP] Re: ereg question/prob...

2004-07-15 Thread Red Wingate
$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

[PHP] Re: ereg question/prob...

2004-07-15 Thread Tim Van Wassenhove
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