From: Kyle Hunter Date: 2008-04-18T23:00:33+09:00 Subject: Re: How to substitute tabs into single spaces for a String Peter Loftus wrote: > val = " hello ".sub(/\t/, ' ') > puts val > > Cant covert tabbed spaces into regular single spaces > Anyone have any ideas? irb(main):006:0> "\tlol\t".gsub("\t", ' ') => " lol " -- Posted via http://www.ruby-forum.com/.