Cornelius19
Technical User
- Mar 9, 2007
- 26
Hello,
The following line works fine in my script:
split(t, words, " ");
It splits/divides the string ‘t’ (actually a text) into words and puts them into a table called ‘words’. I would like to change the separator from space to (space AND question mark AND exclamation mark). I guess the best is to use a regex and tried the following:
split(t, words, [ !?]);
However, I received an error message saying that “0 is invalid as number of arguments for split”. Any idea to fix this issue?
Thanks,
Cornelius
The following line works fine in my script:
split(t, words, " ");
It splits/divides the string ‘t’ (actually a text) into words and puts them into a table called ‘words’. I would like to change the separator from space to (space AND question mark AND exclamation mark). I guess the best is to use a regex and tried the following:
split(t, words, [ !?]);
However, I received an error message saying that “0 is invalid as number of arguments for split”. Any idea to fix this issue?
Thanks,
Cornelius