How to pull x number of seperated words from a line

gcomm

Client
Регистрация
01.03.2011
Сообщения
332
Благодарностей
93
Баллы
28
Have varying numbers of keywords on lines (strings)

Objective - pull 3 words per line

Some lines have unknown amount of words separated with ","
Some lines are quite short 3words

Thus far I am working with this as a guide...


{-String.Split-|-{-File.GetString-|-C:\results\website\keywords.txt-|-random-|-false-}-|-,-|-{-Random.Int-|-0-|-2-}-}



-Long night - I'm sure its something right in front of me... ;-) Thanks ...
 
Регистрация
01.02.2011
Сообщения
99
Благодарностей
15
Баллы
0
This is exactly the type of problem regex is designed for, i'd think you would be able to nail it with regex buddy to design & suggest.

The repeating pattern is 3 white spaces, if you concentrate on the spaces the number of letters in the words doesn't matter.
 

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)