title: Regular expression in ruby and matching so many results
body: <p>Trying to create a simple regular expression that can extract numbers(between 7 - 14) after a keyword starting with g letter and some id, something like following :  </p>
  
  <pre><code>(g)(\d{1,6})\s+(\d{7,14}\s*)+
  </code></pre>
  
  <p>Lets assume : </p>
  
  <pre><code>m = (/(g)(\d{1,6})\s+(\d{7,14}\s*)+/i.match("g12 327638474 83873478 2387327683 44 437643673476"))
  </code></pre>
  
  <p>I have results of : </p>
  
  <pre><code>#&lt;MatchData "g23333 327638474 83873478 2387327683 " "g" "12" "2387327683 "&gt;
  </code></pre>
  
  <p>But what I need as a final result , to include, 327638474, 83873478, 2387327683 and exclude 44. </p>
  
  <p>For now I just getting the last number 2387327683 with not including the previous numbers </p>
  
  <p>Any help here . </p>
  
  <p>cheers </p>