Treat the string like a slash-delimited list, and use the appropriate
function (someone borrowed my cf reference, sorry) to delete the last
item.  Something like (but probably not actually)

listdeleteat(string, listlen(string, '/'), '/');

--Ben Doom

Richard Crawford wrote:

> Given a string that contains a directory name (e.g.,
> "/var/www/html/files/classes/admin"), what is the best way to trim all
> of the characters off the last instance of the / character?
>
> --
> Richard S. Crawford
> Programmer III,
> UC Davis Extension Distance Learning Group (http://unexdlc.ucdavis.edu)
> (916)327-7793 / [EMAIL PROTECTED]
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to