How would I split a string by multiple words?

So I want to split a string by words like “READ_START”, “READ_END”, “READ2_START”, “READ2_END”, etc. How would I go about doing this? Do I loop through a table of these words and just run the split function on them or?

Do you mean trying to split words where there is a ’ _’ ?

Nah, split the string by the entire words in the parentheses.

If you you use READ[NUMBER]_START and READ[NUMBER]_END you could do it by some string patterns

1 Like

That sounds like a good idea. I’ll try it out. Thanks!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.