Get specific sub-string

I want to extract “qwert yuiop asd.” from the following string
the sub string might vary

.
.
.
EXTERNAL EMAIL

https://performancemanager4.successfactors.com/ui/uicore/img/email_footer_left.png

https://performancemanager4.successfactors.com/efg/abd2.jpg

https://performancemanager4.successfactors.com/ui/uicore/img/email_footer_right.png

qwert yuiop asd. Action Required: Employee Leon Van Loon contract is getting expired 15 days from today

https://performancemanager4.successfactors.com/ui/uicore/img/email_footer_center.jpg

Capture

You can get it with a regular expression:

extractedText = System.Text.RegularExpressions.RegEx.Match(inputText, ".+(?=\.\s+Action Required:)").Value

it worked thankyou :slight_smile:

1 Like

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