From: olczyk@... (Thaddeus L. Olczyk) Date: 2001-12-17T02:15:34+09:00 Subject: [ruby-talk:28696] Re: How do you do "character filtering" of a string using each_byte. On Sun, 16 Dec 2001 14:43:13 GMT, David Alan Black wrote: >Hello -- > > >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.