title: regexp for python list
body: <p>I have a list of git branches in Python.</p>
  <p><code>['fb_fix', 'master', 'rel.100.0', 'rel.101.0', 'rel.96.0', 'rel.96.2', 'rel.96.2.0', 'rel.97.0']</code></p>
  <p>I need a regular expression via re module, which will include all the list items where there is prefix <code>rel.</code> and any numbers by masks <code>00.0</code> or <code>00.0.0</code> or <code>000.0</code> or <code>000.0.0</code>, i.e. exclude other values from the list, in my example this is <code>'fb_fix'</code> and <code>'master'</code>:</p>
  <p><code>['rel.100.0', 'rel.101.0', 'rel.96.0', 'rel.96.2', 'rel.96.2.0', 'rel.97.0']</code></p>
  <pre><code>import subprocess
  
  git_branches = subprocess.run(&quot;git branch -r&quot;, shell=True, stdout=subprocess.PIPE, encoding='utf-8')
  branches_str = git_branches.stdout.replace(&quot;origin/&quot;, &quot;&quot;)
  
  branches_list = branches_str.split()
  print(branches_list)
  </code></pre>