*****
<ul class="pdlist_unitprice">
<li><b>1元=12.00</b>两</li>
<li>0.0833元/两</li>
</ul>
*****
星号表示其他代码,求抓出 0.0833元/两 ,先谢谢帮忙的同道们。
<ul class="pdlist_unitprice">
<li><b>1元=12.00</b>两</li>
<li>0.0833元/两</li>
</ul>
*****
星号表示其他代码,求抓出 0.0833元/两 ,先谢谢帮忙的同道们。
StreamReader reader = new StreamReader("c:\\temp\\1.txt",Encoding.Default);
string source = reader.ReadToEnd();
Regex reg = new Regex(@"(?is)(?<=<li>)[^<>]*?(?=</li>)");
Match mm = reg.Match(source);
MessageBox.Show(mm.Value);