Re: Number of Words in a String
- To: mathgroup at smc.vnet.net
- Subject: [mg102534] Re: Number of Words in a String
- From: meitnik <meitnik at gmail.com>
- Date: Wed, 12 Aug 2009 04:36:58 -0400 (EDT)
- References: <h5r8b5$l4q$1@smc.vnet.net>
hi, Try this: CountWords[str_String]:=Length[StringSplit[str]] Its not perfect, still working on it. I suspect only via a RegEx use will we get what we want. andrew