title: Regex to pull uppercase words and timestamps?
body: <p>I'm quite inexperienced with Regex and even though I would like to figure it out myself, I'm not sure how to get started.</p>
  
  <p>I would like to develop a Ruby scan Regex that takes a string and returns an array of strings.  The Regex should identify stock market ticker symbols, and also include short timestamps (inc. -1d, -1m, -1y) if they follow the ticker.</p>
  
  <p>As an example:</p>
  
  <pre><code>How is AMZN-1d today and what about MSFT?
  </code></pre>
  
  <p>would return...</p>
  
  <pre><code>["AMZN-1d", "MSFT"]
  </code></pre>
  
  <p>Additionally, if this could be expanded on to the following Regex, which gets the ticker symbols, but not timestamps - that would be brilliant!</p>
  
  <pre><code>scan(/[\b\$]?[A-Z]{1,}\.[A-Z]+\b|[\b\$]?[A-Z]{2,}\b|\$[A-Z]{1,}\b|\b[A-Z]{1,}\$/) 
  </code></pre>