From: Cheyne Li Date: 2009-05-12T07:05:03+09:00 Subject: Re: question to write \4 into file 7stud -- wrote: > 7stud -- wrote: >> >> Use single quotes around your string? >> > > Otherwise, keeping adding slashes to your match while trying to replace > it with "HELLO". Don't be surprised if it takes 9 slashes to get the > match. Once you get the match, then use your desired replacement and > keep adding slashes to it until it works. Thanks. After puting 8 slashes, the path is correctely written in the file...speachless... -- Posted via http://www.ruby-forum.com/.