private void AyiklaVeSiralaClick(object sender, EventArgs e) { string pattern = @"^([^'\r\n]*)'.*\r\n\1\r\n(.*)\r\n.*\r\n"; RegexOptions options = RegexOptions.Multiline; AyiklananText.Clear(); foreach (Match m in Regex.Matches(AyiklanacakText.Text, pattern, options)) { foreach (var etiket in m.Groups[2].Value.Split(new[] { ' ' }, StringSplitOptions.RemoveEmptyEntries)) { if (etiket.StartsWith("@")) { AyiklananText.AppendText(m.Groups[1].Value + "\t" + etiket + "\r\n"); } } } var sirali = AyiklananText.Lines.OrderBy(r => r).Distinct(); AyiklananText.Clear(); foreach (var k in sirali) { if (Regex.IsMatch(k, @"^([^\t]*)\t(.*)")) { AyiklananText.AppendText(k + "\r\n"); } } }
private void TemizleClick(object sender, EventArgs e) { AyiklanacakText.Clear(); AyiklananText.Clear(); IstatistikText.Clear(); KazananlarText.Clear(); YedeklerText.Clear(); }