I have a block of text and some lines are like a flag to me where the area I want to get begins and ends. With
RegExMatch I can select that are, but I select also those flags. I need to erase the first line and the last line from my variable. Is it a easier way to do this then use loops, index and so on?
Code: Select all
txt =
(
some text
some text
text where the area starts
the line I need to get
the line I need to get
text where the area ends
some text
)
ttx := RegExMatch(txt, "(text where the area starts\X+?text where the area ends)", New_Body)
MsgBox % New_Body1