Jul-10-2020, 06:38 AM
I'm no expert but, since what you want to retrieve are a lot of lines, maybe you can just loop through the file lines, see if '[DAT_23]' is in one line, start retrieving, and then stop when you find '[ END ]'. If you think these substrings could actually appear somewhere else and "confuse" the program, you could use the regular expression to match them at the specific parts of the string (i.e. right at the beginning or end).