title: Regular Expressions - Extracting Years
body: <p>I am trying to extract dates from a string. I have come up with a solution, however, it isn't very glamourous. Could anybody share a better alternative?</p>
  
  <p><a href="https://i.stack.imgur.com/xoApt.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xoApt.png" alt="enter image description here"></a></p>