I regularly copy-paste texts from pdf files and such to InDesign. The original files often contain a significant amount of footnotes. The contents of the footnote texts are converted to plain text and appear as such:
[a bunch of text with footnote references]
10 See Articles 5(1)(f) and 32. (actual footnote text)
11 Article 32; see also Recital 83 (actual footnote text)
12 See Recital 87 (actual footnote text)
Guidelines on Personal data breach notification under the GDPR
[a bunch more paragraphs with footnote references]
13 It should be noted that a security incident [...] (actual footnote text)
14 See Opinion 03/2014 (actual footnote text)
This continues throughout the text. A such, all the footnote texts are spread out as they originally appeared at the bottom of the respective pages.
Now, I would really like a GREP command that will select all of the footnote texts at once so I can cut-paste them to somewhere else. So far I've managed to make this working expression:
This will select all footnote texts that appear in order plus the numbers.
From there I was trying to make a code which would look behind line 12 for example, and also look behind any paragraphs after 12 with regular text information and see if footnote text 13 etc. would come up:
The problem with something like this is that positive lookbehinds don't accept usage of a plus. So now I don't know how I can look behind any paragraph regardless of the amount of characters there are. How would I go about doing that?