How to output string after a variable?

Hi.

I have a string that is stored inside a variable for example
“IAOOU TEST - TAKE - FIVE ATTEMPTS”

Now the IAOOU is stored into a variable then as this variable changes each time so what I am trying to do is how to get “TEST - TAKE - FIVE ATTEMPTS” into a new variable then

StringVariable1 = IAOOU TEST - TAKE - FIVE ATTEMPTS

StringCode1 = StringVariable1 .Split(" ".ToCharArray)(0)
OUTPUT: IAOOU

StringCode2 = StringVariable1.Split(StringCode1, ???

I need the output for StringCode2 to be - “TEST - TAKE - FIVE ATTEMPTS”. Any suggestions would be appreciated please. Keep in mind, the strings could be anything and no symbols involved also. The first string is always the one word whereas after the first string could be anything.

Hi,

Can you try the following expression?

StringVariable1.Substring(StringVariable1.IndexOf(" "))

Regards,

@ciaramkm - Another approach…

Replace the IAOOU with your StringVariable1…

Thanks all, it works much better :slight_smile:

Hi @ciaramkm

You can also try like this

please look at the file attached

Split_String_At_First_Space_Character_Into_Two_Substring.xaml (5.6 KB)

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