Hello,
I need some help in order to extract all the words from a string variable and put them in a List of Strings.
Thanks in advance!
Hello,
I need some help in order to extract all the words from a string variable and put them in a List of Strings.
Thanks in advance!
Can you share the sample input text with us
Use environment.newline split the string.
Try below code
arrvalue=strValue.Split(Environment.NewLine.ToArray, StringSplitOptions.RemoveEmptyEntries)
Regards
Gokul
Hey @Paul_Andrei_Turcu,
You can extract the words with some separator and and using the below code you can convert that sentence or string to a list or array.
stringVar.Split(',').ToList();
Thanks,
Sanjit
Hei,
Than can be one example:
Your solution works as an array variable but I want it as a List
Can you share your input and expected output.
My input is “essix bk ok bonnummer 15324812088920-9” as a string and i want to generate a list of String that would contain all the words in that string variable.
The output, aftar a for each iteration should look like this:
essix
bk
ok
bonnummer
15324812088920-9
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.