http://www.cnblogs.com/deerchao/archive/2006/08/24/zhengzhe30fengzhongjiaocheng.html
匹配行:tr[\s\S]*?>(.|\n)*?</tr>
匹配单元格 : <td[\s\S]*?>[\s\S]*?</td>
匹配链接:<a(.|\n)*?>[\s\S]*?</a>
匹配日期:\d{2,4}(-|年)\d{1,2}(-|月)\d{1,2}(日)?
匹配数字:^\-?[0-9]+\.?[0-9]*$
匹配链接:<a.*?href\s*=\s*(?:""(?<url>[^""]*)""|'(?<url>[^']*)'|(?<url>[^\>^\s]+)).*?\>(?<title>[\s\S]*?)</a>
匹配邮件地址:\b\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+\b
问题:线程间操作无效: 从不是创建控件的线程访问它
为了防止资源冲突,因为控件都是由主线程创建的,其他线程直接访问的时候就不被允许了。用委托,这样就可以访问了。this.BeginInvoke(委托);
错误 1 非静态的字段、方法或属性“WindowsFormsApplication1.Form1.label1”要求对象引用 C:\Users\Administrator.HF-0001\Desktop\测试文件\WindowsFormsApplication1\WindowsFormsApplication1\Form1.cs 21 13 WindowsFormsApplication1
public static void test()
{
label1.Text = "test";
} public static void test()
{
label1.Text = "test";
} public static void test()
{
label1.Text = "test";//label1是控件的(非实例化,有工具拖出的)
}