title: Regular expressions in expect
body: <p>I just started learning expect scripting.I have been trying to extract the following from my output:</p>
  
  <pre><code>core.4046140998.01.10.133211
  </code></pre>
  
  <p>with an expect script using the following command.can somebody please tell me where I am going wrong?I want to get to store this entire string i.e.( core.4046140998.01.10.133211*) in a variable and perform some action with it.</p>
  
  <pre><code>expect -re {^(core)\.*} {puts $expect_out(0,string)}
  </code></pre>
  
  <p>Do i have to import any packages in expect to make this work?</p>