I have been working on the following regex expression:
/(?<=\@Comment\{Annotation: key:START;\})( )/
which is designed to try and find an annotation that looks like: @Comment{Annotation: key:START;}
in a text file. These annotations represent the possible lines where the file could be broken down into smaller files.
I am having problems completing my capture group instruction or if I have described that wrong, my last ( )
so that it scans all lines remaining in the string (which might contain EOF) or the next annotation fitting this pattern is detected.
I am hoping not to have to convert this to a line based approach with checks performed on each line...
I thought one of the following might have worked but so far nothing has:
- \s
- \Z
- \s*(.*) --> this works in the sense that I can manually repeat this sequence to add each line, one at a time, but that's highly impractical