C#入門–正規表現式で画像をフィルタ操作する

参考コード
///<summary>
///<summary>
public static string replaceImgUrl(string html)
{
if (html == null)
return “";

System.Text.RegularExpressions.Regex regex = new System.Text.RegularExpressions.Regex(@"\<img[^\>]+\>", System.Text.RegularExpressions.RegexOptions.IgnoreCase);
html = regex.Replace(html, “");
return html;
}

VB.net

Posted by arkgame