Get specific sub-string

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


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


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.