I have the following piece of code:
      static private void parseForSampleRate(string header, ref LoggerData logger_data)
      {
           Regex pattern = new Regex(@"(?<=Sample rate(hz): )\d+.\d+(?= |)");
           Match m = pattern.Match(header);
           if (m.Success)
                logger_data.SampleRate = Convert.ToDouble(m.Value);
           else
                logger_data.Error = ParseError.SAMPLE_RATE_NOT_FOUND;
      }
When feeding in the following string:
Sensor ID: 11 | Sample rate(hz): 60.00 | Duration(sec): 3600.00
I fail to receive a match.
What exactly am I doing wrong? I've specified a lookbehind of "Sample rate(hz): " and lookahead of " |". I've also believe I've specified the "\d+.\d+".
Any ideas as to why I'm not getting a success match with value of 60.00?
Thanks,
