title: Find the right regex for Managed Metadata Format
body: <p>Using Javascript, I am getting this type of raw data:</p>
  
  <pre><code>input = "GP0|#586fa4fb-32ad-422a-aaa2-a676df51302b\n\nL0|#0586fa4fb-32ad-422a-aaa2-a676df51302b|Consumer Goods\n\nGTSet|#cbadda79-7304-4902-b648-45b9dab70eb6"
  
  input = "GP0|#60066230-11f1-46db-ad89-2b91ffd42ec4\n\nL0|#060066230-11f1-46db-ad89-2b91ffd42ec4|Processing\n\nGTSet|#cbadda79-7304-4902-b648-45b9dab70eb6\n\nGPP|#b6240ea6-ebbd-47ce-8516-d5208256b9d3\n\nGPP|#586fa4fb-32ad-422a-aaa2-a676df51302b"
  </code></pre>
  
  <p>I have tried the below regex but not getting the values which are Processing or Consumer Goods</p>
  
  <pre><code>var mmDataRegex = /#0[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]|(.*?)(GTSET|GP0|GPP|L0|$)/igm;
  var match = mmDataRegex.exec(input);
  </code></pre>
  
  <p>Please help.</p>