regex – Capturing any character between two specified words including new lines
I need to capture the title between the words TITLE and JOURNAL, for instance in the string
TITLE The Identification of Novel Diagnostic Marker Genes for the
Detection of Beer Spoiling Pediococcus damnosus Strains Using the
BlAst Diagnostic Gene findEr
JOURNAL PLoS One 11 (3), e0152747 (2016)
the captured string needs to be'The Identification of Novel Diagnostic Marker Genes for the Detection of Beer Spoiling Pediococcus damnosus Strains Using the BlAst Diagnostic Gene findEr'
, either with or without new line characters (preferably without new line characters).
I tried applying regular expressions such as those offered here and here, but couldn’t apply them to my needs.
I also need to exclude the scenario in which the captured string is Direct Submission
.
Thanks.
Read more here: Source link