using System; using System.Text.RegularExpressions; using System.Collections.Generic; using System.Linq; public class Test { public static void Main() { string s = @"some description ` match these_words th_is_wor ` or `THIS_WOR thi_sqw` a `word_snake`"; string pattern = @"`(?:[\p{Zs}\t]*(\w+)[\p{Zs}\t]*)+`"; foreach (Match m in Regex.Matches(s, pattern)) { string[] result = m.Groups[1].Captures.Select(c => c.Value).ToArray(); Console.WriteLine(String.Join(',', result)); } } }