在字符串后面和字符串中的<br>之前的值

rah*_*rma 0 c# regex string parsing

我有一个像这样的字符串:

Error=0,0<br>Federal withhold=1.00<br>FICA=0.00<br>Medicare=0.00<br>Federal Supplemental withhold=0.00<br>State withhold=361.32<br>State Supplemental withhold=0.00<br>City withhold=0.00<br>City Supplemental withhold=0.00<br>City Resident withhold=0.00<br>City Resident Supplemental withhold=0.00<br>County withhold=0.00<br>County Supplemental withhold=0.00<br>School withhold=0.00<br>School Supplemental withhold=0.00<br>SDI withhold=0.00<br>SDI employer withhold=0.00<br>SUI employer withhold=0.00<br>Version=2013.01,1.02<br>No messages

从这个字符串我想提取State withhold其实际值361.32.

我有这个字符串在C#中的字符串,我曾尝试与IndexOfSubstring,但没能获得我如何能得到可贵有<br>特定的单词后State withhold.

Dav*_*rno 5

使用正则表达式State withhold=([^<]+)<并从中读取值Match().Captures[1]

http://msdn.microsoft.com/en-us/library/twcw2f1c.aspx