Re: help with storing user input

new topic     » goto parent     » topic index » view thread      » older message » newer message

On 15 May 2003, at 0:55, Jason Dube wrote:

> 
> Hello,
> What would be an efficient way of seperating words in a user inputted
> sentence?
> For example to break apart the words in a sentence. Im specifically trying to
> develop a GOOD algoritm to seperate words from user inputed sentence and store
> them as individual sequences.Like: user input:"mary had a little lamb"
> results:sequence 1st_sentence={"mary","had","a","little","lamb") Im having
> difficulties skipping whitespaces and converting to string
> 
> how would euphoria do this:?

parsedline = parse(input," ")

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu