Split the string doubt

Hi,

I have a string where i need to split and store.

Eg: AAA<BBBB<CCCC<DDDD

output
AAA
BBBB
CCCC DDDD

i need the last left over value should be in last field without split

Thanks

Hello,

I can suggest, first split the string using delimiter character < later you can combine last two strings to single…

Thanks,
Meg

yes, i split the string using delimiter character, later i struck because the string is not constant value, sometimes it has CCCC<DDDD<EEEE. Then how can we do this?

What do you mean by leftover value?

You can specify how many times you want to split a string from the string.split method.
See here: String.Split Method (System) | Microsoft Docs

1 Like

Hi @thediabloman

I have the string like AAA<BBBB<CCCC<DDDD and it is not having constant length like sometime we get the string value as AAA<BBBB<CCCC<DDDD<EEEE or more, so i am able to split AAA & BBBB, but i want the left over value i.e., CCCC DDDD should not be split

Eg : if the value is AAA<BBBB<CCCC<DDDD

AAA ->Variable 1
BBBB → Variable 2
CCCC DDDD → in Variable 3

Can you tell this?

Thanks

Hi
For example like this:
image

image

Main.xaml (5.8 KB)

Thanks @Head it worked.

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