title: Javascript regular expression for year
body: <p>I am pretty new to javascript. How would I find if a piece of text <strong>contains</strong> a four digit year?</p>
  
  <p>For example:</p>
  
  <pre><code>var copyright = $('#copyright').val();
  if \d{4} in copyright:
      do something
  </code></pre>