c# 正则

第一种:

 

Regex reg = new Regex(“”);

string htmlCode = "(?<= src=\").*(?=\" alt)";

Match match = reg.Match(htmlCode);

string url = match.value;

posted @ 2019-06-10 14:07  饮木  阅读(139)  评论(0编辑  收藏  举报