On 6/6/06, darren kirby <bulliver / badcomputer.org> wrote:
> fileroot, type = filename.split(/regex here?/)

> I cannot find a way to write a regex that only matches the last period in the
> filename. Is there an elegant way to do this?

  ext = File.extname(filename)
  file = File.basename(filename, ext)

-austin
-- 
Austin Ziegler * halostatue / gmail.com
               * Alternate: austin / halostatue.ca