[snip]
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
[/snip]
you could try without regular expressions
$string = 'client1/album/album_121-2132_IMG.JPG';
$arr = explode('/',$string);
print $arr[count($arr) - 1];
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php