From: bob@... (Bob Proulx) Date: 2007-10-12T08:34:09+09:00 Subject: Re: How to delete specific characters from a string? 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. Look at the String#slice method. This is usually used via the [] operator routines. ri "String#slice" a = "hello there" a[1] #=> 101 a[1,3] #=> "ell" a[1..3] #=> "ell" a[-3,2] #=> "er" a[-4..-2] #=> "her" a[12..-1] #=> nil a[-2..-4] #=> "" a[/[aeiou](.)\1/] #=> "ell" a[/[aeiou](.)\1/, 0] #=> "ell" a[/[aeiou](.)\1/, 1] #=> "l" a[/[aeiou](.)\1/, 2] #=> nil a["lo"] #=> "lo" a["bye"] #=> nil Bob