language: C# (mono-2.8)
date: 401 days 22 hours ago
link:
visibility: public
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
using System;
using System.Text.RegularExpressions;
 
public class Test
{
        public static void Main()
        {
                String fullCode = "Enum resultado = SPDialogBox.Instance.show<ACTION_ENUMs.TORNEO_SORTEAR>(\"Esto es una prueba\");\r\n"
                                + "pKR_MESAPUESTOASIGNACION.CONFIGTORNEO_ID = Valid.GetInt(dr.Cells[\"CONFIGTORNEO_ID\"].Value);";
                String pattern = @"(?<!\[)\x22(.*?)\x22";
                var matches = Regex.Matches(fullCode, pattern, RegexOptions.Multiline);
                foreach (Match m in matches)
                {
                    Console.WriteLine(m.Groups[1]);
                }
 
        }
}