求替换图片地址的正则
替换规则
//源
<img style="style" src="src.img" width="" />
<img style="style" src="/src.img" width="" />
<img style="style" src="http://www.website.com/src.img" width="" />
//结果
<img style="style" src="http://www.myname.com/src.img" width="" />
<img style="style" src="http://www.myname.com/src.img" width="" />
<img style="style" src="http://www.website.com/src.img" width="" />
Regex.Replace(str, @"(?is)( src=['
[解决办法]
""]*)(?!http)/*([^'""]+)", "$1http://www.myname.com/$2")