title: How to extract the string pattern in C++ efficiently?
body: <p>I have a pattern that in the following format:</p>
  
  <pre><code>AUTHOR, "TITLE" (PAGES pp.) [CODE STATUS]
  </code></pre>
  
  <p>For example, I have a string</p>
  
  <pre><code>P.G. Wodehouse, "Heavy Weather" (336 pp.) [PH.409 AVAILABLE FOR LENDING]
  </code></pre>
  
  <p>I want to extract </p>
  
  <pre><code>AUTHOR = P.G. Wodehouse
  TITLE = Heavy Weather
  PAGES = 336
  CODE = PH.409
  STATUS = AVAILABLE FOR LENDING
  </code></pre>
  
  <p>I only know how to do that in Python, however, are there any efficient way to do the same thing in C++?</p>