From: Suraj Kurapati Date: 2007-04-21T05:50:58+09:00 Subject: Re: Finding non-printable characters using Regular Expressio Michael W. Ryder wrote: > "A \n B \t C".gsub(/[^[:graph:]]/, '') > > I need to keep the spaces and have not been able to figure > out how to include them in the output so that it shows "A B C". Hint: examine the second parameter of String#gsub -- Posted via http://www.ruby-forum.com/.