From: Austin Ziegler Date: 2006-06-07T10:54:51+09:00 Subject: Re: regex for splitting filenames On 6/6/06, darren kirby 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