title: Check if numbers are present and in particular pattern using regex
body: <p>I want to check if a string contains digits in the format <code>dddd-dd-dd</code>. I'm not interested in checking valid dates.</p>
  
  <p><strong>Examples:</strong></p>
  
  <ul>
  <li><p>Input: <code>att_token_2015-09-02</code></p>
  
  <p>Expected output: True</p></li>
  <li><p>Input: <code>att_token_1234-99-99</code></p>
  
  <p>Expected output: True</p></li>
  <li><p>Input: <code>att_token_1234</code></p>
  
  <p>Expected output: False</p></li>
  </ul>
  
  <p><strong>EDIT:</strong> I haven't tried this in any program. I just want the regex pattern for it.</p>
  
  <pre><code>(\d+)-(\d+)-(\d+)
  </code></pre>
  
  <p>This is what I have tried so far and it returns me the numbers but I do not know if this is right.</p>