text text <$Ffootnote footnote footnote > text text
That looks straightforward enough - except that Ventura has various other control characters of the type <I>, <I*>, <->, <N>, <> and so on that get in the way:
text <$F footnote <I>title<I*> foot<->note <N> footnote<> footnote > text
After some effort, using Regex Buddy, I constructed the following regex, which matches the above footnote just fine:
- Code: Select all
<\$F([\s\S]+?)(?<!(<|< |< |<I|<I\*|<CR|<N|<-))>
Trouble is, UE's 'Perl-style' regex doesn't seem to support those negative lookbehinds that I need to ignore those gratuitous control characters, and I can't figure out an alternative. I'm flummoxed. Would anyone know of a workaround? (Regex Buddy declares the above regex valid for Java, but for Perl it warns: "Perl does not support variable repetition inside lookbehind")
I'd be be most grateful for a bit of help here...
best,
fvgfvg

