i’m not a regex expert but i know how to make simple regex. But when it comes to this type, how do you search for a specific text like “SU”,”RU”,”IN”. Here’s a sample data:
The string is like this:

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you want to match exactly the word “IN” and not “INPUT” then you have to use word boundaries.
The word boundary
\bmatches the change from a word character (All letters, digits and the underscore) to a non word character (All other characters).If you have a list of those words you can put them in a list (already combined with the word boundaries)
This would match either “IN” or “SU” or “RU”
If this answer didn’t solved your problem, then please add more details to your question.
Because of the request in the comment:
of course its possible to get more details from the row. To answer this I am making some assumptions about your data (because there is only a picture)
You can then get the “test” with using
RegexOptions.Multiline(this is needed to make the^match the start of the row)The first word is in capturing group 1 and the keyword is in group 2.