From: Mike Stok Date: 2007-10-12T08:32:24+09:00 Subject: Re: How to delete specific characters from a string? On 11-Oct-07, at 7:15 PM, Bazsl wrote: > Is there really no method that allows me to delete N characters > starting at position P from a string? I have looked (carefully I > hope) through the String methods and did not see a way to do this. > Thanks. bash-3.2$ irb irb(main):001:0> s = 'abcdefghi' => "abcdefghi" irb(main):002:0> s[3,4] = '' => "" irb(main):003:0> s => "abchi" might be one way to do it. Hope this helps, Mike -- Mike Stok http://www.stok.ca/~mike/ The "`Stok' disclaimers" apply.