From: Dave Thomas Date: 2001-12-17T03:34:02+09:00 Subject: [ruby-talk:28701] Re: How do you do "character filtering" of a string using each_byte. olczyk@interaccess.com (Thaddeus L. Olczyk) writes: > >See Jim M.'s answer -- also, here's an example of how to do it by > >chaining some nice String methods: > > > > str = "What\t ever 123 YOU want 2 \t have" > > newstr = str.tr("\t"," ").delete("[0-9]").squeeze.upcase > > p newstr # => "WHATEVER YOU WANT HAVE" > > > > > >I know you want to do more than just this one case, but this might > >point you toward some ideas that you use more generally. > > > This response as every response to this thread tells me absolutely > nothing with the exception of pointing me to str.tr where I *might* > find the answers by looking at the source. Or possibly the documentation, which is generally considered a polite thing to do before posting questions. Dave