Python:Picking values from a table

Hi

I trying to write a python script that executes a command to screen scrub results below
I will appreciate it very much if you can help me with a python script that can
pick the percentage USAGE in the second column based on the supplied queue number in the first column
Thanks in advance.

NUMBER of Queues = 5
SYSTEM Treshold = 80%
  ==================================================================

QUEUE   USAGE   TOTAL book1   book2

------------------------------------------------------------------

0001 18%   822   481    98  

0002 16%   345   765    88  

0003 10%   400   300   166  

0004 15%   994   322    177  

0005 17%   348   297    131  

----------------------------------------------------------

---------- Post updated at 09:57 PM ---------- Previous update was at 05:50 PM ----------

I was able to get this screen scrub done using php preg_match_all
but i want to do the same with the re module in python.

Please suggestions and help will be very much appreciated

Thanks

Please post what you've tried so far, and hopefully a Python expert here on the forums will be able to tell you where you're going wrong.

I am a complete newbie when it comes to Python. But i did it in php using

preg_match_all('/^(\d+)\s+(\d+)%/m', $content, $match, PREG_PATTERN_ORDER);
print_r($match[2][0]);

thats where i am now with it. I only Python has a re module that can do the same thing as preg_match_all in php

Thanks and help very much appreciated

---------- Post updated at 09:08 PM ---------- Previous update was at 05:29 PM ----------

I tried to do this in Python with this code but nothing shows up when i run it from the command line. Will very much appreciate your help.

import re
content = """NUMBER of Queues = 5
SYSTEM Treshold = 80%
  ==================================================================

QUEUE   USAGE   TOTAL book1   book2

------------------------------------------------------------------

0001 18%   822   481    98  

0002 16%   345   765    88  

0003 10%   400   300   166  

0004 15%   994   322    177  

0005 17%   348   297    131  

---------------------------------------------------------- """

m = re.match("(0001)/(\d{%})", content)           
if m:
    print m.group(0)      
    print m.group(1)