title: How can I extract all the 24 hour times from a string using regex?
body: <p>I want to extract all the 24 hour times inside a string.</p>
  
  <p>An example of a string I want to extract the times from could be:</p>
  
  <pre><code>The image has been uploaded at 20:12 and viewed at 21:04 and later was deleted around 23:43
  </code></pre>
  
  <p>There are 3 times I want to extract from this example string:</p>
  
  <ul>
  <li>20:12</li>
  <li>21:04</li>
  <li>23:34</li>
  </ul>
  
  <p>I've tried this pattern: </p>
  
  <pre><code>^(([1-9]{1})|([0-1][0-9])|([1-2][0-3])):([0-5][0-9])$
  </code></pre>
  
  <p>But it only seems to validate if a time is correct.</p>