I have a large log file, and I want to extract a multi-line string between two strings: start and end.
start
end
The following is sample from the
You could do (?s)start.*?(?=end|start)(?:end)?, then filter out everything not ending in "end".
(?s)start.*?(?=end|start)(?:end)?