Michael McDaniel wrote: > > All I want to do is separate a generic file path into: > > - directory > > - basename > > - extension or suffix > Maybe I'm missing something, but I just do something like this (on UNIX) ... > def fdir(str) > m = /.*\//.match(str) > if m != nil; then m.to_s ; else "" ; end > end > (etc.) Yep, I've had to do my own "extname" or "suffix" extractions with regular expressions and taking apart the filename path. But since Ruby already has built-in 'dirname' and 'basename' methods, I figured it should finish the job! :-) -- Mike Hall http://www.enteract.com/~mghall