Re: Help with eregi

From: Date: Tue, 22 Jun 2004 19:08:37 +0000
Subject: Re: Help with eregi
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-188830@lists.php.net to get a copy of this message
On Tue, 22 Jun 2004 14:57:28 -0400, Ryan Schefke <ryan@triomfgroup.com> wrote: > > Could someone please help me with an eregi statement. > > I have a string that can vary as such: > > client1/album/album_121-2132_IMG.JPG > > client2/album/album_121-2132_IMG.JPG > > client59/album/album_121-2132_IMG.JPG > > client499887/album/album_121-2132_IMG.JPG > > I want to select whatever comes after the last forward slash, like > album_121-2132_IMG.JPG preg_match('#client[[:digit:]]+/album/(album_[[:digit:]]{3}-[[:digit:]]{4}_IMG\.JPG)#i', $string, $matches);

« previous php.general (#188830) next »