title: using Regex to find expression in middle of string
body: <p>I'm New in Regex programming and I want to search for a pattern example:</p>
  
  <p>19:09:41 PM : [ 0] 0.0-100.2 sec 796 MBytes <code>66.6 Mbits/sec</code> 0.273 ms 2454161/3029570 (81%) --> I want <code>66.6 Mbits/sec</code></p>
  
  <p>18:55:13 PM : [ 0] 0.0-99.1 sec 3847 MBytes <code>326 Mbits/sec</code> 0.068 ms 247494/3029365 (8.2%) --> I want <code>326 Mbits/sec</code></p>
  
  <p>So in the first step i want the Number Mbits/sec</p>
  
  <p>This is My code snippet</p>
  
  <pre><code>Regex TP_PatternInt = new Regex(@"(?&lt;TP&gt;\d+) Mbit/sec");
  Match TP_MatchInt = TP_PatternInt.Match(StringName);
  string ResultInt = TP_MatchInt.ToString().Split(' ')[0];
  
  Regex TP_PatternFloat = new Regex(@"(?&lt;TP&gt;\d+).\d Mbit/sec");
  Match TP_MatchFloat = TP_PatternFloat.Match(StringName);
  string ResultFloat = TP_MatchFloat.ToString().Split(' ')[0];
  
  if (TP_MatchFloat.Success) Return ResultFloat;
  else if(TP_MatchInt.Success) return ResultInt;
  but when I run it I never get TP_MatchFloat.Success == true
  </code></pre>
  
  <p>What am I missing here ? Can someone propose a single pattern for both cases ?</p>