Hi,
I need help with getting the To: email address from the string below.
I know that this expression will get the value. System.Text.RegularExpressions.Regex.Match(CurrentMail.Body.ToString,”(?<=To:).*”).Value.Trim
But before getting the value must check that the value is between “To:” and “Cc:” and only get that value.
From: test@test.com
To: jaira@test.com
Cc: brav@test.com, anjane@test.com