From: Martin DeMello Date: 2006-07-31T14:18:36+09:00 Subject: Re: Howto Delete 3 Leftmost Characters On 7/31/06, Esteban Manchado Vel�zquez wrote: > > But you're probably better off using regular expressions instead of fixed > indices: > > "#ip 127.0.0.1".sub(/^#ip\s+/, '') # => "127.0.0.1" A prettier looking form, in this case, is s = "#ip 127.0.0.1" s[/^#ip /] = '' martin