C# 利用正则表达式获取富文本框中所有图片路劲
2021-01-09 07:29
标签:lte static 文本框 array ups val options return models 直接上代码 测试 C# 利用正则表达式获取富文本框中所有图片路劲 标签:lte static 文本框 array ups val options return models 原文地址:https://www.cnblogs.com/bangguo/p/13098491.html 1 public static string[] GetHtmlImageUrlList(string htmlText)
2 {
3 Regex regImg = new Regex(@"
]*?\bsrc[\s\t\r\n]*=[\s\t\r\n]*[""‘]?[\s\t\r\n]*(?
1 string content = "

