title: Extracting numbers from string c++ regex
body: <p>I'm trying to extract numbers from string:</p>
  
  <pre><code>string line = "00:00:15,000 --&gt; 00:00:18,000";
  
  smatch results;
  
  bool found = regex_match(line, results, regex("(\\d\\d):(\\d\\d):(\\d\\d),(\\d\\d\\d) --&gt; (\\d\\d):(\\d\\d):(\\d\\d),(\\d\\d\\d)"));
  
  /*for (auto result : results) {
      cout &lt;&lt; result &lt;&lt; endl;
  }*/
  
  int res = atoi( *results[3] );
  </code></pre>
  
  <p>I can easily print results(the commented code) but i can't covert results to an int. Dereferencing doesn't work for some reason with this results array.</p>