title: Regular Expression For Parsing Data
body: <p>I am writing an application that reads some data from a simple text file. The data files,
  that I am interested in, have lines in the following form:</p>
  
  <pre><code>Mem(100) = 120
  Mem(200) = 231
  Mem(43) = 12
  ...
  Mem(1293) = 12.54
  </code></pre>
  
  <p>So, as you can understand, the pattern of each line is something like </p>
  
  <pre><code>(\s)*(\t)*Mem([0-9]*) (\s,\t)*= (\s,\t)*[0-9]*(.)*[0-9]*
  </code></pre>
  
  <p>like I have any number of whitespaces before the character sequence "Mem", followed by
  a left parenthesis. Then, there is a number and a right parenthesis. Afterwards, there is any number of white spaces until an '=' (equals) character is encountered. Then, any number of white spaces until I come across a (possibly) floating point number.</p>
  
  <p>How can I express that in a C++ regex pattern? I am really new to the regular expression concept in C++ so I would need some help.</p>
  
  <p>Thank you</p>