我有一个这样的字符串:
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# 字符串中有这个字符串,我已经尝试过IndexOf
但Substring
无法获得如何获得该值,直到<br>
在那个特定单词之后State withhold
。