Robert,


On 2009-11-22 04:00, Robert Klemme wrote:
> 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?


Sorry, I was just indenting to differentiate the examples from the text.


> 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'


s.sub /^To:\s*/, '\\1'

is correct (I was indenting code to differentiate it) but why is 
explicit better?

Thanks,

Phil.
-- 
Philip Rhoades

GPO Box 3411
Sydney NSW	2001
Australia
E-mail:  phil / pricom.com.au