How to read multiple lines from notepad



Hello people,
i am facing issue with the Regex (regular expression)
i need to take multiple lines after the String “Timeband” ,it is working fine when i scrap single line with
regex --> :arrow_down_small:
“TimeBand " +System.Text.RegularExpressions.Regex.Match(text,”(?<=Time Band)(.*)").Value

But, When it comes to read Multiple lines after “TimeBand” what would be the regular expression
need some help

thanx in advance



@prathamesh.c Use Assign activity

txtdata= File.ReadAllLines(“Filepath\111.txt”) and assign it to another output variable and check and extract data using IF condition and string operations like substring,Index …


Thanx buddy


@prathamesh.c, Use the following syntax to get multiple lines after the word Time Band,

System.Text.RegularExpressions.Regex.Match(text,”(?<=Time Band)((.|\n)*)")

According to the input image,above code will output a string starting with II Rate…473460]

Dominic :slight_smile: