POWER AUTOMATE DESKTOP
I'm trying to get the borrower's name ("TEST NAME") from this text (%NewInput%) using the Parse Text action and the Regex expression:
(?<=AND\n).*
However the parse text is returning nothing as a match with position -1.
Tuesday, 12 July 2020
LOAN AGREEMENT
THIS LOAN AGREEMENT (this "Agreement") dated this Tuesday, 12 July 2020
BETWEEN:
FAKE COMPANY
ajkbsdfjlbasjildfuiasbduifbasipdbf
(the "Lender")
OF THE FIRST PART
AND
TEST NAME
[PHOTO ID ADDRESS LINE 1]
[PHOTO ID ADDRESS LINE 2]
(the "Borrower")
OF THE SECOND PART
IN CONSIDERATION OF the Lender loaning certain monies (the "Loan") to the Borrower, and the Borrower
repaying the Loan to the Lender, the parties agree to keep, perform, and fulfil the promises and conditions....


The regex works exactly as intended in regex101, capturing the next line of text after the AND\n.
All examples for power automate desktop I've seen haven't included any flags or open/close characters on the regex string. I'm sure its something small but It's driving me insane.