From: Edward Podojil Date: 2011-06-30T08:43:44+09:00 Subject: Re: A movie Renamer --20cf307cfc82c5f1d504a6e25a31 Content-Type: text/plain; charset=ISO-8859-1 Maybe I'm thinking a bit amateurishly (only Rubying for a couple weeks now), but wouldn't a regexp \w+ command for each filename suffice? Just return everything before the . in the filename (guess you could avoid digits first) and rewrite the file name with the return + ' '. Guess you could add a raise exception if a movie was found pirated that changes your username to 'THIEF' On Wed, Jun 29, 2011 at 3:46 PM, Sam Duncan wrote: > True enough. Add; > > http://www.ruby-doc.org/core/**classes/String.html > http://www.ruby-doc.org/core/**classes/String.html#M001193 > http://www.ruby-doc.org/core/**classes/String.html#M001161 > > And maybe even; > > http://www.ruby-doc.org/core-**1.9/classes/Pathname.html > > Sam > > > > On 30/06/11 10:37, andrew mcelroy wrote: > >> >> or this thread could just end because I answered it in the first email. >> file.rename is the method he is looking for. >> >> I linked to the file and the dir class documentation. >> >> Andrew McElroy >> >> > --20cf307cfc82c5f1d504a6e25a31--