Extract dynamic otp from email

Hi @sophiey

System.Text.RegularExpressions.Regex.Match(inputstring,"(?<=OTP.*)[A-Z]+\-?\d*(?=\.)").Value

Go through the below thread

Hope it helps!!