Extracting everything after penultimate backslash

Giganews Newsgroups
Subject: Extracting everything after penultimate backslash
Posted by:  rl (sd…@dgfedhgehdfh.com)
Date: Tue, 2 Sep 2003

Hi all,

What expression/function can I use to use extract a file's name and its directory,
i.e. how to get:-

  'subdir1/file1.html' from /dir/subdir1/file1.html
or
  'f/page.htm' from /dir1/dir2/dir3/f/page.htm

Regards, rl

Replies