I would like to match everything after \t(\fn but only before \and excluding the last bracket that belongs to the \(t (as you can see on the attached picture)
For this :
\t(\fnJester (BIG))
\t(\fnJester (BIG))\i1
\t(\fnJester (BIG)
\t(\fnJester))))\fnArial (BOLD)\
I want to match :
Jester (BIG)
Jester (BIG)
Jester (BIG
Jester)))) and Arial (BOLD
I'm almost there with this pattern :
(?<=\\t\(.*?\\fn).*(?=\)|\\)
But since it's greedy, it matches everything even after \
