title: Python splitting specific nmap output
body: <p>I have the following output from nmap and i am trying to split into the sections like nmap has it, like the following:</p>
  
  <pre><code>PORT | STATE | SERVICE | VERSION
  </code></pre>
  
  <p>The output would look like this:</p>
  
  <pre><code>2000/tcp  open  cisco-sccp?
  3000/tcp  open  http           Apache httpd 2.2.3 ((CentOS))
  </code></pre>
  
  <p>I tried using the string.split() but it keeps giving me everything in its own entry, so ultimately what i am trying to get is the "Apache httpd 2.2.3 ((CentOS))" but i can't get that at all, it keeps putting every word in an entry. I even tried</p>
  
  <pre><code>re.split('\s+', string)
  </code></pre>
  
  <p>But that also yields the same result. Any help is very much appreciated.</p>