From: Robert Klemme Date: 2009-11-22T02:00:11+09:00 Subject: Re: Removing optional white space - doh! - refined On 21.11.2009 16:18, Philip Rhoades wrote: > People, > > For more than one white space char: > > string.gsub( /^..:\s*/, '' ) Your original example had whitespace before the "To". Don't you want to get rid of that as well? Btw, I'd rather name the word explicit, so for me it would be one of s.sub /To:\s+/, '' s.sub /^(\s*)To:\s*/, '\\1' Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/