I am working with a string “Steffel Jan, Prof. Dr. med., Zürich” and I need only name here that is Steffel Jan, So How can I get this value using Split string activity in uipath?
Hi @Chandni
You can use String.Split function this will give you array of string and your first element would be the name what you want.
yourString.Split(","c)
or you can do this
yourString.Substring(0, varString.indexOf(","))
It will give the substring before the first occurrence of comma
Thanks,
Prankur
1 Like