How to Split a String

I am trying to split a string on string ‘not’ . String is “This is not a game” is in variable PDFVariable. So I use a variable Var of type String and assign as PDFVariable.ToString().Split(‘not’) and trying to see the output in Var(1). But I am getting error in the Assign box.

Hi Levanthai,

Use “Split string” activity to split your string. Try this and let me know if any issues. Split string.xaml (5.0 KB)

Regards,
Senthil V

Hi @levanthai,

Adding to above you can also do this

Main.xaml (7.0 KB)

Thanks,
Prankur

Hello, maybe you should try using double quotes instead of simple ? ie (‘not’) -> (“not”)