I am looking for Regex (to be used in Power Automate Desktop) for finding a line containing only two capital letters. So in below example, it should find only line 5 as the correct choice.
I tried following. It works in regex101 website but for some reason it doesn't work in Power Automate. Any suggestions to correct this regex?
\b[A-Z]{2}\b\n
Sample text:
HEllo, how are you
This IS test message
is this OK
where are you. I
AM
here.