配图骗的正则表达式
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);
Match m = Regex.Match(text, "<IMG[^>]*?\\s+src=['\"]?([^\"].*?)['\"]?\\s+[^>]*?>");
if (m.Success)
{
text = m.Groups[1].Value;
}
Response.Write(text);
浙公网安备 33010602011771号