Reflex to Delete all text except between two lines
问题 I am trying to extract the content between two lines of string. Here is how the text looks Hhhshhajsjsjsj Hshhejjsjsmk Hahjajajajajja Message-ID: b123467 abc def Kjhshjsjs Received: Hdjjddjdjdjdjd I need to keep the text between ‘Message-ID’ and ‘Received:’ I tried ‘@“(?:\G(?!\A)[X-Message-ID:)\r?\n(.*)(?>\r?\nReceived:(?=S\r?$))?’ I have got an error ‘can’t find the text’ 回答1: Your problem would be straightforward if you only had a single occurrence of this text, and you only needed to