title: Python to extract specific numbers from text file
body: <p>I have a text file and inside the text file are binary numbers such as 35F,1,0,1,0,0. I want Python to find a specific combination but first there is a degrees number in front.</p>
  
  <p>What I want Python to do is skip that degree F number in this example 35F and just search for all binary combination of 1,0,1,0,0. so the output should look something like this </p>
  
  <pre><code>28F 1,0,1,0,0
  15F 1,0,1,0,0
  18F 1,0,1,0,0
  20F 1,0,1,0,0
  22F 1,0,1,0,0
  </code></pre>
  
  <p>at this moment I have this code. The only problem with it I can't search for my own specific combination it only tells me how many duplicates there are. </p>
  
  <pre><code>import collections
  
  
  with open('pythonbigDATA.txt') as infile:
      counts = collections.Counter(l.strip() for l in infile)
  for line, count in counts.most_common():
      print count
  </code></pre>