VL String and charcter functions - 'Split' equivalent

Hi, is there a command among the current VL nodes that acts as the Split (String) function would do in Csharp? I was trying to find a decent combination of nodes to do it with but I lost patience and came here.

If it isn’t posssible yet, please make it so,it’d be super useful for me to sift through large data sets. I also noticed a lack of RegEx which think people could come in handy at a later stage.

Thanks

indeed apparently still missing. consider it an oversight, should be there shortly. will be reported here.

also regex of course…but that may take a little more time to import it properly.

maybe a really boiled down regex would be a nice starter case for VL nonetheless?

how would one go to import System.Text.RegularExpressions and use only the Regex and the Matches classes with VL?

not afraid of xml btw.

I gave it a try, which I guess is the point, right?

I think I’m still working in a 45 style, so I fell back upon ‘I’ and ‘Getspread’ nodes. The logic took me a while to figure out, but ‘if’ is a lot more flexible than switch.

With no strings connected the node throws an error but I could probably setup an ‘IsEmpty’ condition to prevent that.

While I was patching in VL my keyboard controls would stop working (undo, delete, align etc) and I would have to restart vvvv45 to get the useability back. I don’t know what the trigger was yet but I’ll see what happens as I play around.

H

Does a similar thing to Separate (string) (4.4 kB)

it is theoretically in the library since we have imported it already, but we are hiding all nodes which have something to do with arrays. and since the string.Split() returns an array of strings, it is not visible in the node list. so as soon we have proper array support it will automatically be there.

Okay, that makes sense, and I guess that would count for a lot of external libraries too. Thanks for the update.

H

now. please check again with latest alpha. there are now multiple split nodes the “Split (String)” of which should be the default one to use. it returns a spread of strings separated by a single given string.

Cool, thanks.