string text = "<IMG src=\"/web1/UploadFile/admin/2008-6/11111111.jpg\" border=0> "; Match m = Regex.Match(text, "<IMG[^>]*?\\s+src=['\"]?([^\"].*?)['\"]?\\s+[^>]*?>"); if (m.Success) { text = m.Groups[1].Value; } Response.Write(text); 相关文章: 2021-09-21