ereg question/prob...

From: Date: Thu, 15 Jul 2004 17:33:48 +0000
Subject: ereg question/prob...
Groups: php.general 
Request: Send a blank email to php-general+get-190607@lists.php.net to get a copy of this message
hi... i have the following... $file = "tttt.txt"; ereg("(\.)([a-z0-9]{3,5})$", $file, $regs); echo " ww = ".$regs. "<br><br>"; 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 "extension" should be in the $reg array.... any ideas/comments on where my mistake is would be appreciated... thanks -bruce

« previous php.general (#190607) next »