title: Find all lines that match regex pattern and grab part of string
body: <pre><code>f = open("machinelist.txt", 'r')
  lines = f.readlines()
  for host in lines:
         hostnames = host.strip()
         print hostnames
  </code></pre>
  
  <p>Returns:</p>
  
  <pre><code>\\TESTHOSTDEV01
  \\TESTHOSTDEVDB01
  \\TESTHOSTDEVDBQA
  \\TESTHOSTDEVQA02
  \\BTLCMOODY01          MRA Server
  \\BTLCSTG05            StG Server
  \\BTLCWEB02
  \\BTLCWSUS01           Test Update Server
  \\HIMSAPP01
  \\SLVAPP01
  \\TORAAPP01
  \\HNSVAPP01
  \\TESAPP01
  </code></pre>
  
  <p>I am curious if there is a way to use re.findall() to grab all lines that begin with "\" however I just want to capture return the hostnames, not the "\ or the comments after the host such as "MRA Server" (example: BTLCMOODY01)</p>