How to read between line?


i have a text file like

bla bla bla
bla bla bla
bla bla vasdasdasd
please read me se
please read me gr
please read me ew
please read me se
please read me cg
bla bla bla

i just want to read the in between lines of //rs:data
How can i do this


Hi @jothyprasanth.m

If the line to be fetched starts with or has standard prefix like “//” you can split the string using keyword and new line character as delimiter and you can get the required line.



Hey @jothyprasanth.m

this is one of the way

You can get first index of(position) "//rs:data " and similarly you can get last index of(position) of “//rs:data” then by using Substring you will get your output.

For your reference a sample workflow : extract_lines_btw_two_strings.xaml (6.6 KB)