How do i split this string from get full text activity?

I am trying to split a string i got from a get full text activity and this is the string:
"\r\n \r\n N800 - Automated Analytics Div (41) \r\n\r\n \r\n N600 - Com Programs (24) \r\n\r\n \r\n N700 - Law Programs (22) \r\n\r\n \r\n N200 - PAIR (13) \r\n\r\n \r\n N000 - Industy Ops (4) \r\n "
How do i split this?

Have you tried Strings.Split(inputStr.Trim, "\r\n\r\n \r\n") ?

here, inputStr = input string i.e the ouput of get text activity.

Hi @nicholas.harvey

Have you tried ,

strText = strText.replace("\r","").replace("\n","")

Thanks

@nicholas.harvey - Please try this…

Yourstring.Replace("\r\n",string.Empty).Trim

Hope this helps…

none of that worked… here is what it looks like when i output it

image

@nicholas.harvey - we can get it using Regex. But do you have any starting text and ending text which we can use it to fetch these 5 lines?

You can easily assign these to 5 variables as shown below…

What is the output that you want?

@nicholas.harvey - Did you get a chance to try ??