From: Dave Thomas Date: 2002-02-16T05:01:11+09:00 Subject: Re: String#delete! null chars? "Morris, Chris" writes: > irb(main):024:0> a = 'test' << 0 > "test\000" > irb(main):025:0> a.delete!( ) > > What do I pass to delete! in order to remove the null character? (Can't use > chop, it may not always be there in the data I'm working with) Chris: a.delete!("\000") Cheers Dave