title: Regular expression capturing a repeated group
body: <p>I am  trying to parse input string using regular expression. I am getting problem when trying to capture a repeating group. I always seem to be matching last instance of the group. I have tried using Reluctant (non greedy) quantifiers, but I seems to be missing some thing. Can someone help?</p>
  
  <p>Regular expression tried:</p>
  
  <pre><code>(OS)\\s((\\w{3})(([A-Za-z0-9]{2})|(\\w{3})(\\w{3}))\\/{0,1}){1,5}?\\r
  
  (OS)\\s((\\w{3}?)(([A-Za-z0-9]{2}?)|(\\w{3}?)(\\w{3}?))\\/{0,1}?){1,5}?\\r
  </code></pre>
  
  <p>Input String: </p>
  
  <pre><code>OS BENKL/LHRBA/MANQFL\r\n
  </code></pre>
  
  <p>I always seem to capture last group which is MANQFL group <code>(MAN QFL)</code>, and my aim is to get all three groups (there can be 1-5 groups):</p>
  
  <pre><code>(BEN KL) , (LHR BA) and (MAN QFL). 
  </code></pre>
  
  <p>Anyhelp will be appreciated.</p>