URL from mail body

Highlighed one. If you are expecting only one email, then instead of foreach

“(?<=HYPERLINK “+chr(34)+”)(.*)(?=”+chr(34)+“click)”

Validate your output – If (matchesOutout.Count >0) matchOutput(0).ToString