Hi
I want to split this text begin with #acc#
"Some information about topic #acc#POLOM|30670.41#acc#KEMZANE|38882.59#acc#KANIOWSKA|30670.41 Some information about this text "
there are 3 line useful for me:
#acc#POLOM|30670.41
#acc#KEMZANE|38882.59
#acc#KANIOWSKA|30670.41
inserting line break
afterwards it can also be split on the linebreak, if it is needed
Hi
Hope the below expression would help u resolve this
If ur string is in a variable named Strinput
Then in assign activity mention like this
arr_stroutput = Split(Strinput.ToString,β#acc#β)
Where arr_stroutput is a varivale of type array of string
If u want this as a string output then use this in a assign activity
Stroutput = String.Join(Environment.NewLine, Split(Strinput.ToString,β#acc#β)
Cheers @murat.karasoy
This method gave 4 piece like that;
1)Some information about topic
2)POLOM|30670.41
3)KEMZANE|38882.59
4)KANIOWSKA|30670.41
I donβt want first one
Fine
You can skip that with this inclusion in the expression
Stroutput = String.Join(Environment.NewLine, Split(Strinput.ToString,β#acc#β).Skip(1).ToArray()
Cheers @murat.karasoy
How about this expression?
Array(String) = YourString.Split({"#acc#"}, StringSplitOptions.None).Skip(1).ToArray
Check out this Workflow
Main.xaml (7.9 KB)
Regards
Gokul
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.