title: How do I scan for combinations of words in ruby using regex?
body: <p>I'm trying to scan a string for any combination of a list of words. Specifically, I want to find any 'number word' combinations such as "two hundred and eighty" or "fifty eight".</p>
  
  <p>To do this I have made a list all the single number words up to a million:</p>
  
  <pre><code>numberWords = ["one", "two", "three", ...... "hundred", "thousand", "million"]
  </code></pre>
  
  <p>I then joined the list together using "|" and made a regex like this:</p>
  
  <pre><code>string.scan(/\b(#{wordList}(\s|\.|,|\?|\!))+/)
  </code></pre>
  
  <p>I expected this to return a list of all number word combinations but it only returns the words separately. For example, if there is "three million" in the string it returns "three" and "million" but not "three million". How do I correct this?</p>