From: Jamal Mazrui Date: 2006-04-29T02:43:30+09:00 Subject: Counting words I've research this but am still having trouble getting it right .... Can someone give me code that counts the number of words in a string via RegExp and MatchData objects? I think I'd like a word to be defined as contiguous characters surrounded by white space (or the start/end of the string), though am open to other interpretations. Jamal