Split text seperately

Hi Everyone, I have a scenario that i want to split data separately but i have tried split based on space and i tried some basic Regex which i know but it didn’t worked for me. can anyone guide me how to do that.
I’m attaching the sample data below.

I want output in row by row

Ex O/p : All
Select the department you want to search in
All Categories
Alexa Skills

Input file :

data.txt (1.0 KB)

Hi @Learner007
Can you share input and output example?

Hi @Emira i attached input text file in question please check once and output also i have mentioned i need to display 1 by 1 item.

Hi @Learner007

Try this


strOutput =

Regex.Replace(InputText," {2,}" ,Environment.NewLine)
1 Like

Smart answer :+1:

1 Like

hi @kumar.varun2 it is working but if i want to loop this data 1 by 1 how to do it. Please help me on this.


you can use the split for that


Demo.xaml (9.2 KB)

Thanks @kumar.varun2 It’s working.

1 Like

Hi expert can you please help me to understand what is meaning here {2,}

Hi @Aleem_Khan

It matches occurrence of space character for 2 or more times. Refer the screenshot

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