常用正則表達式 捕獲組(分組)

1.img標籤 //<img開頭,中間不包含<或>,空格後src以'或"開始..... Regex reg = new Regex("<img[^<>]*\\ssrc=(['\"]+[^<>'\"]+['\"]+)[^<>]*>", RegexOptions.IgnoreCase); MatchCollection mc = reg.Matches(html); foreach (Match m
相關文章
相關標籤/搜索