![](https://images2015.cnblogs.com/blog/300447/201611/300447-20161116141542920-1461458789.png)
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; } } |
附件列表