title: Get values using regex in Python
body: <p>How can I get the values 4 and 5 for test1 using only regex. I have this string:</p>
  
  <pre><code>  test1 =                 -2,                 2,                 2,                 0,                 0,                 0,                 0,                 0,                 0,                 0
    test2=              27000,             20000,             30000,             16200,              8000,              8000,              8000,              8000,              8000,              8000
    test3 =               1500,              1500,              1500,              1500,              1500,              1500,              1500,              1500,              1500,              1500
    test4 =               7000,              7000,              7000,              8000,              8000,              4000,              4000,              4000,              4000,              4000
    test5 =                500
  </code></pre>
  
  <p>I have this command:</p>
  
  <pre><code>`\s(test)\s*=(?P&lt;test&gt;\D.*)`
  </code></pre>
  
  <p>It selects 2 groups, but I would like to have the values 4 and 5. Or is there any other way? I don't want to use pandas.</p>