日期:2014-05-17 浏览次数:20437 次
string s="<img alt= src=\"/file/upload/image/20130113/20130113113810_67646.jpg\" />!@#$%<img src=\"/file/upload/image/20130108/20130108115635_65724.jpg\" />" ;
string[] sArr = s.Split(new string[] { "!@#$%" }, StringSplitOptions.RemoveEmptyEntries);
string html = "<img alt=\"\" src=\"/file/upload/image/20130113/20130113113810_67646.jpg\" />!@#$%<img alt=\"\" src=\"/file/upload/image/20130108/20130108115635_65724.jpg\" /> ";
string[] imgs = System.Text.RegularExpressions.Regex.Split(html, System.Text.RegularExpressions.Regex.Escape("!@#$%"));
foreach (string img in imgs)
{
Response.Write(img+"\r\n");
}