using System;
using System.Text.RegularExpressions;
public class NombreLigne
{
public static long compterNombreLigne(string text)
{
Regex reg = new Regex("", RegexOptions.Multiline);
MatchCollection mat = reg.Matches(text);
return mat.Count + 1;
}
public static void Main()
{
Console.WriteLine("Test: " + compterNombreLigne("Mes Exemples.comnTest de nombre de ligne" +
"Une nouvelle ligne"));
}
}