using System;
using System.Text.RegularExpressions;
public class Example
{
public static void Main()
{
string pattern = @"(0-9]{5,6}[\t|\s]+sl-SI)[\r\n]";
string substitution = @"\n";
string input = @"Hello team,
We have dispatched a new job for you in GlobalLink.
Please see details below and kindly check the instructions field for each submission before you start working on it, as there could be special instructions in GL added by the client.
Translation task Deadline: please check in Junction task
Copy Edit task Deadline: please check in Junction task
Job Names **
Sub ID Lang
151097 sl-SI
151096 sr-RS
151094 da-DK
151093 tr-TR
151417 pt-BR
";
RegexOptions options = RegexOptions.IgnoreCase;
Regex regex = new Regex(pattern, options);
string result = regex.Replace(input, substitution);
}
}
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