From: Rick DeNatale Date: 2007-05-15T06:01:01+09:00 Subject: Re: What is it about File.rename? On 5/14/07, Rick DeNatale wrote: > Try replacing line 20 with either > File.rename(pstxtfile, pstxtfile.to_s.gsub(/(^.*)\.pdf\.pstxt/, > "ps2k_\1.pstxt")) Oops that should be "ps2k_\\1.pstxt" or 'ps2k_\1.pstxt' The double quote string will interpret a single slash as an escape of the next character. -- Rick DeNatale My blog on Ruby http://talklikeaduck.denhaven2.com/