
using System.Text.RegularExpressions;
private void button1_Click(object sender, EventArgs e) { string regPartten = textBox1.Text; Regex reg = new Regex(regPartten, RegexOptions.IgnoreCase | RegexOptions.Multiline); Match m = reg.Match(textBox2.Text); if (m.Success) { textBox3.Text = m.Groups[1].Value; } } |