title: Regular expression for multiple occurances in python
body: <p>I need to parse lines having multiple language codes as below</p>
  
  <pre><code>008800002     Bruxelles-Nord$Br�ussel Nord$&lt;deu&gt;$Brussel Noord$&lt;nld&gt;
  </code></pre>
  
  <ul>
  <li><code>008800002</code> being a id</li>
  <li><code>Bruxelles-Nord$Br�ussel Nord$</code> being name1</li>
  <li><code>deu</code> being language one</li>
  <li><code>$Brussel Noord$</code> being name two</li>
  <li><code>nld</code> being language two.</li>
  </ul>
  
  <p>SO, the idea is name and language can appear N number of times. I need to collect them all.
  the language in <code>&lt;&gt;</code> is 3 characters in length (fixed)
  and all names end with <code>$</code> sign.</p>
  
  <p>I tried this one but it is not giving expected output.</p>
  
  <pre><code>x = re.compile('(?P&lt;stop_id&gt;\d{9})\s(?P&lt;authority&gt;[[\x00-\x7F]{3}|\s{3}])\s(?P&lt;stop_name&gt;.*)
      (?P&lt;lang_code&gt;(?:[&lt;]\S{0,4}))',flags=re.UNICODE)
  </code></pre>
  
  <p>I have no idea how to get repeated elements.
  It takes </p>
  
  <p><code>Bruxelles-Nord$Br�ussel Nord$&lt;deu&gt;$Brussel Noord$</code> as stop_name and <code>&lt;nld&gt;</code> as language.</p>