日期:2014-05-17  浏览次数:20843 次

跪求!正则表达式一条
从网上获取了一个表格的string ,如下:

HTML code


<td class="t_H2">合现金流量表-全年</td>
<td class="t_H2" id="H">2011/12</td>
<td class="t_H2" id="H">2010/12</td>
<td class="t_H2" id="H">2009/12</td>
<td class="t_H2" id="H">2008/12</td>
<td class="t_H2" id="H">2007/12</td>

<td class="t_T1">经营活动之现金流量</td>
<td class="t_C1_B" id="C">395,935</td>
<td class="t_C1" id="C">14,584</td>
<td class="t_C1" id="C">226,605</td>
<td class="t_C1" id="C">133,104</td>
<td class="t_C1" id="C">109,144</td>
<td class="t_LC" colspan="6"></td>
<td class="t_T1">投资回报及融资费用之现金流量</td>
<td class="t_C1_B" id="C"><span style="color:green;">-66,233</span></td>
<td class="t_C1" id="C">243,749</td>
<td class="t_C1" id="C">180,372</td>
<td class="t_C1" id="C">231,016</td>
<td class="t_C1" id="C">191,366</td>
<td class="t_LC" colspan="6"></td>
<td class="t_T1"> 已收利息</td>
<td class="t_C1_B" id="C">0</td>
<td class="t_C1" id="C">449,667</td>
<td class="t_C1" id="C">399,115</td>
<td class="t_C1" id="C">425,143</td>
<td class="t_C1" id="C">328,121</td>
<td class="t_LC" colspan="6"></td>
<td class="t_T1"> 已付利息</td>
<td class="t_C1_B" id="C"><span style="color:green;">-3,212</span></td>
<td class="t_C1" id="C"><span style="color:green;">-149,898</span></td>
<td class="t_C1" id="C"><span style="color:green;">-164,088</span></td>
<td class="t_C1" id="C"><span style="color:green;">-150,029</span></td>
<td class="t_C1" id="C"><span style="color:green;">-120,941</span></td>
<td class="t_LC" colspan="6"></td>
<td class="t_T1"> 已收股息</td>
<td class="t_C1_B" id="C">1,268</td>
<td class="t_C1" id="C">1,071</td>
<td class="t_C1" id="C">544</td>
<td class="t_C1" id="C">652</td>
<td class="t_C1" id="C">74</td>
<td class="t_LC" colspan="6"></td>
<td class="t_T1"> 已付股息</td>
<td class="t_C1_B" id="C"><span style="color:green;">-64,289</span></td>
<td class="t_C1" id="C"><span style="color:green;">-57,091</span></td>
<td class="t_C1" id="C"><span style="color:green;">-55,199</span></td>
<td class="t_C1" id="C"><span style="color:green;">-44,750</span></td>
<td class="t_C1" id="C"><span style="color:green;">-15,888</span></td>
<td class="t_LC" colspan="6"></td>
&