Bonjour à tous,
Je ne suis pas du tout familiarisé avec les expressions lambda, de ce fait je n'arrive par à convertir la méthode ci-dessous en Vb.net.
Quelqu'un pourrait-il m'aider et/ou me fournir la méthode en VB.net SVP ?

Un gros merci à tous, et bonne soirée

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
 
private static string StripOLList(string source)
        {
            string output = "";
            try
            {               
                string patternOL = @"<(ol)\s[^\>]*>(<li>.*?</li>)+?</\1>";               
                string trg = Regex.Replace(source, patternOL, (param) =>
                {                   
                    if (param.Groups[1].Value.Equals("ol"))
                    {
                        int i = 1;
                        foreach (Capture c in param.Groups[2].Captures)
                            output += String.Format("{0}. {1}\n", i++, Regex.Replace(c.Value, "<li>(.*?)</li>", "$1"));
                    }                   
                    return output;
                });               
                return trg;               
            }
            catch
            {
                return source;
            }
        }