using System;
using System.Text.RegularExpressions;
public class Example
{
public static void Main()
{
string pattern = @"(Knowledge.*)|(some time knowledge.*)|(data after knowledge.*)";
string input = @"Requirements
· Completed or close to completing of relevant Microsoft 365 certifications (Essential)
· Diploma or degree in Information Technology, Computer Studies or a related field (Preferred)
· At least 5 years’ work experience in IT/IT support with minimum 3 years in a Microsoft 365 Engineering/Admin role (Essential)
· Knowledge and experience in administering and supporting Microsoft Windows 10 (Essential)
· some time knowledge and experience in administering and supporting Microsoft 365, Exchange Online, Teams, and other Office 365 tools (Essential)
· data after knowledge and experience in administering and supporting SharePoint Online (Preferred)
· Knowledge and experience in administering and supporting Microsoft Dynamics 365 and Business Central (Preferred)
· Strong team player with good oral and written communication and interpersonal skills (Essential) ";
RegexOptions options = RegexOptions.Multiline;
foreach (Match m in Regex.Matches(input, pattern, options))
{
Console.WriteLine("'{0}' found at index {1}.", m.Value, m.Index);
}
}
}
Please keep in mind that these code samples are automatically generated and are not guaranteed to work. If you find any syntax errors, feel free to submit a bug report. For a full regex reference for C#, please visit: https://msdn.microsoft.com/en-us/library/system.text.regularexpressions.regex(v=vs.110).aspx