From: "Sam C." Date: 2007-01-23T11:59:20+09:00 Subject: Re: Problems with replacing text Dan Uznanski wrote: > On Jan 22, 2007, at 7:16 PM, Sam C. wrote: > >> an If-Then statement that checks to see if "I" exists before replacing >> it. > > Try using uinput.gsub!(/I', 'you') > > alternatively, you can wrap your command in do/rescue/end, but that's > usually more work than you really want to do. > > Dan Thank you so much, I now have it working! -- Posted via http://www.ruby-forum.com/.