1 person found this helpful
I was hoping maybe Jongware would take this on, but since he hasn't, I think
the answer is that you need to enable singleline mode to cross paragraph
boundaries. to do that you need to use the prefix (?s) at the start of your
(?s)(tag)(.+?)(\\tag) for example seems to find all text for me between tag
Inthe query, the question mark after the plus sign is used to limit the
result to the shortest match, required to prevent selecting everything from
the first tag to the last \tag instead of matching between pairs, and the
doubled backslash is required because \ is a special character and all
special charaters must be "escaped" by addin the \ in front of them to find
the literal glyph.
I did try that one but couldn't find the right syntax for my document. I do understand however that it would be the best way to go.
I managed to work my way to this ...
not the best solution, I'm sure...but it works for me.
for your @start@ and @end@ tags, use (?s)(\@start\@)(.+?)(\@end\@)