Regex output line by line

Hi Everyone,

I have a string format like this

“Select a NUMBER
19223 enrolled
34534 enrolled
24873 enrolled”

I need to use regex to select
first time — select this which is 19223 enrolled
second time — select this which is 34534 enrolled
third time --I need to select this wh is 24873 enrolled

Can anyone help me please to write it in regex so that I can select one by one item which starts from second line 19223 enrolled

I don’t want to select Select a NUMBER

I need to select only 2nd line then 3rd line, then 4 th line and so on

Thanks in advance


test.xaml (7.1 KB)

  1. regexMatches (matchCollection variable) = System.Text.RegularExpressions.Regex.Matches(varStr, "([\d]+ enrolled)")


1 Like

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