小编use*_*330的帖子

试图在C#中使用正则表达式获取整个<div>

我正在尝试在C#中刮整个div元素...

我已经尝试过了, div class="txt-block"\s*(.+?)(\r\n?|\n)\s*"但是它并没有刮擦整个:(有什么想法吗?

    <div class="txt-block" itemprop="creator" itemscope itemtype="http://schema.org/Person"> 
    <h4 class="inline">Writers:</h4>
    <a href="/name/nm1318843/?ref_=tt_ov_wr" itemprop='url'><span class="itemprop"    itemprop="name">Mark Fergus</span></a>               (screenplay), 
    <a href="/name/nm1319757/?ref_=tt_ov_wr" itemprop='url'><span class="itemprop"         
    itemprop="name">Hawk Ostby</span></a>               (screenplay), <a href="fullcredits?ref_=tt_ov_wr#writers" >6 more credits</a>&nbsp;&raquo;
</div> 
Run Code Online (Sandbox Code Playgroud)

html c# regex

0
推荐指数
1
解决办法
1744
查看次数

标签 统计

c# ×1

html ×1

regex ×1