From: "Peña, Botp" Date: 2008-04-18T11:43:05+09:00 Subject: Re: How to find carriage-return characters From: Bill Walker [mailto:Bill@Walker-VT.us] # I need to do a .gsub or .split or the equivalent to locate # carriage-return characters ­ Hex 0d . CR is represented as "\r" 0x0d.chr #=> "\r" so, "test\rx".gsub(/\r/){"[]"} #=> "test[]x" "test\rx asdfa\rasdf".split(/\r/) #=> ["test", "x asdfa", "asdf"]