正则表达式提取新闻内容图片地址

一年多没更新过内容了,最近学习了两个月的sharepoint开发.做了个滚动图片新闻的webpart,图片从那里取是个问题,目前能想到的有两个办法,一是从列表附件中读取,另外一个就是从内容中截取了.下面是用正则表达式提取图片地址的实现.代码 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->stringstrContent=@"<imgalt='marry'src='/west/Lists/Announc
posted @ 2010-10-15 16:37  mracle  阅读(481)  评论(0编辑  收藏  举报