using System; using System.Text.RegularExpressions; public class Test { public static void Main() { string linha = "'Oi 1' 'tchau 2' 'hello 3' 'good bye 4'"; string regex = @"'([^']+)'"; MatchCollection match = Regex.Matches(linha, @regex); string[] dados = new string[match.Count]; for (int i = 0; i < dados.Length; i++) { dados[i] = match[i].Groups[1].Value; Console.WriteLine(dados[i]); } } }