Sample Header Ad - 728x90

Extract content between first one match and first different match across one or multiple lines

2 votes
1 answer
78 views
Let's say I want to get the text between the first match of "start_" and the first of "_end", no matter it it's across same or multiple lines. Don't include the matches. Example text 1: This is a start_text with start_and some_end text with_end out text 1: text with start_and some Example text 2: This is a start_text with start_and some_end text with_end out text 2: text with start_and some I've seen lots of answer but they are line-focused, not file-focused. Any kind of tool or command will do as long as it's console-based.
Asked by Smeterlink (295 rep)
Dec 18, 2023, 07:55 AM
Last activity: Dec 18, 2023, 08:37 AM