| 发表于:2007-02-08 15:40:023楼 得分:64 |
string yourstr = ......; matchcollection mc = regex.matches(yourstr, " <link\\s+rel=\ "stylesheet\ "\\s+type=\ "text/css\ "\\s+href=\ "(? <url> .+?)\ ".+?> ", regexoptions.ignorecase); foreach(match m in mc) { m.groups[ "url "].value;//http://ads.sina.com/cnnews/css/cnnews.css } | | |
|