title: Regex with sscanf in c ignoring whitespace
body: <p>I'm reading from an input file: </p>
  
  <pre><code>          # This is a comment
  
   Matrix A =
                      //NOTICE THIS LINE
  
  
  # matrix A (2 diagonal line segments)
  
  100 100
  
  200 200
  </code></pre>
  
  <p>I can't figure how to extract the Matrix A from that line without the whitespace.
  Right now I have</p>
  
  <pre><code>sscanf(buffer,"%s%*[^\n]", word);
  </code></pre>
  
  <p>I tried </p>
  
  <pre><code>sscanf(buffer,"%*[ ]%s%*[^\n]", word); 
  </code></pre>
  
  <p>and</p>
  
  <pre><code>sscanf(buffer," %s%*[^\n]", word); 
  </code></pre>
  
  <p>and so many others</p>
  
  <p>It just doesn't ignore the whitespace, it copies it in the word variable as well as the matrix a.</p>