Mombu the Programming Forum sponsored links

Go Back   Mombu the Programming Forum > Programming > Extracting words from a sentence.
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 19th November 10:17
david
External User
 
Posts: 1
Default Extracting words from a sentence.



Given a string that represents a sentence, is there a quick way of extracting
the words that make up the sentence? For example, given a string "See ****
run." it would return an array of strings {"See","****","run"} One catch is
that it has to be locale sensitive.

I thought about just removing all the punctuation, but that leaves problems
like the word "don't". I don't want to end up with two words, "don" and "t".
  Reply With Quote


  sponsored links


Reply


Thread Tools
Display Modes




Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666