Esempio n. 1
0
        public static string ToRegex(this CharCountCollection collection)
        {
            var sb = new StringBuilder();

            foreach (var charCount in collection)
            {
                sb.Append(charCount.Character);
            }
            return($@"\n(?<word>[{sb.ToString()}]{{1,{collection.TotalLength()}}})\r");
        }