title: Ruby regex matching string precede with range of numbers
body: <p>I have 2 strings:</p>
  
  <pre><code>I have 4 cars in my house
  I have 14 cars in my house
  </code></pre>
  
  <p>How do we use ruby (1.9.3) regex to check only 1 to 10 car are matched?</p>
  
  <p>Ex:</p>
  
  <pre><code>I have 1 car in my house # =&gt; match
  I have 4 cars in my house # =&gt; match
  I have 10 cars in my house # =&gt; match
  I have 14 cars in my house # =&gt; should not match
  I have 100 cars in my house # =&gt; should not match
  </code></pre>
  
  <p>Also, how do we match (i.e. 2 cars) against any strings? so that if the target string contains '22 cars' then it should not match.</p>
  
  <p>Ex:</p>
  
  <pre><code>some other string before 2 cars some other string after # =&gt; match
  some other string before 22 cars some other string after # =&gt; should not match    
  </code></pre>