-
Split text
Hi every one !
I would like to split a line in 3 news line. I suppose that the client enter a sentence between 3 and 15 words.
The first line contains the first word, the last line contains the last word, and the 2nd line contains all the other word…First, I want to replace the first and the last space (” “) by a pipe (“|”), then use the code split() but I have a problem. How can I define where is the last word (or space) ?
Thanks for your help…