I’ve got a load of text, seperated by spaces that I want to turn into a spread of individual words, is this possible?
Cheers
Cat
I’ve got a load of text, seperated by spaces that I want to turn into a spread of individual words, is this possible?
Cheers
Cat
Ahh tokenizer seems to do it!
Cat
hi cat…
use the “RegExpr (String)”-node with the regular expression:
\s( .*? )\s
this returns everything between two spaces as individual slice…
( .*? )\s
this returns everything which is followed by a space
hop this helps
cheers
Never used that node, I’ll check that out soon, managed it with tokeniser, but had a couple of crashes when setting it to slices!
Thanks
Cat
RegExpr is really handy when dealing with strings… the only thing i miss is a former index output, when feeding regexpr with a spread of strings.
the only thing i miss is a former index output, when feeding
regexpr with a spread of strings.
yes.
Just trying out RegExp, I have a text file with some names, some then occupation.
Ive used RegExp to chop into it into lines, now I want to get a seperate pin for their occupations, at the moment the tabs seem to have there own slices, (there are varying numbers of tabs) Ideally Id like to pins with name on one, occupation on the other, how do I go about doing it?
Cheers
Cat
Just made some progress using -(text) to subtract the first bit formt the second, but the are showing up as squares so I need to get rid of them somehow?
And some more, you can subtract tabs with the subtract (text) node, but Ive still got a spurios character at the end, a line break? Another little square, any ideas?
OK clean, thanks for thinking ahead of me!
Cat