Suppose a string on the following format:
Use \hyperlink{aaa}{apple {pear} banana} and \hyperlink{bbb}{banana {pear} {apple}}.
I want to extract:
\hyperlink{aaa}{apple {pear} banana}
\hyperlink{bbb}{banana {pear} {apple}}
What regex could be used for such an extraction?
I got stuck with this:
\\hyperlink{\S+}{.+}