asked on April 18, 2018
Hi all!
I need your help about a pattern matching.
This is my text
TITLE1 Line 1 and some texts Line 2 and nothing Line 3 John DOE Line 4 TITLE2 Line 1 and some texts Line 2 and nothing Line 3 Olivier Line 4 TITLE2 Line 1 and some texts Line 2 and nothing Line 3 Moana Line 4 TITLE3
And I want to get all between Line 3 and Line 4 from TITLE2 (Olivier;Moana).
I tried this
(?s)TITLE2.*Line 3\s?\r?\n?(.*[^\s\r\n])\s?\r?\n?Line 4.*TITLE3
But it return only "Moana" even if I selected all matches.
0
0