title: TCL/Regex - Getting values from multiple lines
body: <p>This is my output:</p>
  
  <pre><code>Signal Quality  = 100
  Signal Strength = -49
  Noise Level     = -96
  </code></pre>
  
  <p>I am trying to get all three numeric values (i.e., 100, -49, -96). I will be adding and subtracting these values, so I need each in its own variable?</p>
  
  <p>These numbers are dynamic and could be a negative number.</p>
  
  <p>Using the code below, I could grab one at the time, but how would a go about grabbing all 3 numbers?</p>
  
  <pre><code>expect {                    
      -re {Strength = +(.*)\s+Noise} {
          set RSSI $expect_out(1,string)
      }
      puts "Signal Strength = $RSSI"
  </code></pre>
  
  <p>Thanks for your help!</p>