Split the value from the large string

Hi all .
I have a string like
“Global Indemnity IA
case” like this and I want to get only " Global Indemnity IA ". so what can I do?
please help me.

1 Like

Hi @arpita2

Buddy save this two line of string to a variable of type string

out_variable = “Global Indemnity IA
case”

To get the first line a strings use like the below buddy

out_variable = out_variable.split(Environment.Newline.Toarray(),StringSplitoptions.RemoveEmptyEntries)(0).ToString

or if its a single line like “Global Indemnity IA case”

Out_Variable = “Global Indemnity IA case”
Out_Variable = split(Out_Variable," case")(0).ToString

1 Like

Hi @arpita2

You can go through this video to know about split string

Thanks,
Ula

thanks @Palaniyappan
for your help.

1 Like

Cheers buddy

keep going

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.