star (parameter with space or dash) |
Hi, I have a pattern with 3 stars, pattern "* * *" template relearn(); then I can read sigle parameters by using: var brand = sentence.get(#word, 0); but one of the parameter can have space for example par1 par2 par 3 so the words become 4 becose a space. I have to read 3 parameters from the 3 starts How can I solve this situation ?
Also if the user input 1par 2-par 3par, the second parameter is ignored I mean in #word1 I find obly 2 and not 2-par
Thanks in advance |
|
|
|
|