From: Bira Date: 2006-04-29T02:49:23+09:00 Subject: Re: Counting words On 4/28/06, Bira wrote: > number_of_words = string.split(/\s/).length Eh, sorry. I meant to write: number_of_words = string.split(/\s+/).length The "+" is needed to cover words with more than one whitespace character between them. -- Bira http://compexplicita.blogspot.com http://sinfoniaferida.blogspot.com