String Split Accordingly Using Split

I have the following text:

I want to extract separately:

And:

I used:
Split(information, “-----------------------------------------”)(2).ToString

But it generated:

I dont want the last text.

Thank You
Please Advice

@Hurmet_Noka

You can place a break point and check the values you are getting
As you used the index as (2), instead use (1), you are getting the result correctly

Thanks

I need this text:

@Hurmet_Noka

Replace Outbound Flight Information text with empty.

     output = input.Replace("Outbound Flight Information","")
2 Likes

Hi

you are almost done

for first part use this in assign activity

str_part1 = Split(Split(information, “Inbound Flight Information”)(1).ToString),“Outbound Flight Information”)(0).ToString.Replace("-----------------------------------------","")

and for second part like this

str_part2 = Split(Split(information, “Inbound Flight Information”)(1).ToString),“Outbound Flight Information”)(1).ToString.Replace("-----------------------------------------","")

Cheers @Hurmet_Noka

2 Likes

Thank You So Much!
Respect

1 Like

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