Filtering email body busing regex in uipath

I want to create a regex that is equal with the condition below, the below if statement does not work so I wanted to try a regex pattern. If mail body.contains the ff

Mail.Body.Contains("RE: [External] Charitable Class ") OrElse Mail.Body.Contains("RE: Charitable Class")

@Jelrey – Can you please give this a try…IF

system.text.regularexpressions.Regex.ismatch(Mail.body.tostring,"(RE:\s+\[External\]\s+Charitable\s+Class)|(RE:\s+Charitable\s+Class)")
1 Like

we can add multiple OR right @prasath17 /?

@Jelrey - Yes, as shown below…

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.