title: How do I find specific information in a string?
body: <p>I have long strings with tags which don't follow a specific pattern.</p>
  <p>However there are specific tags within the strings that I'd like to detect if present.</p>
  <p>A couple of sample strings:</p>
  <pre><code>__tab1:technical-information-recycled-polyester, __tab2:size-guide-mens-football-tshirts, Archive, Gender:Men, Product - Men, Sport: Football
  </code></pre>
  <pre><code>__label:new, __tab1:technical-information-polyester, Accessories, Gender:Men, Gender:Women, Gift, men, mens,  Mens Football, Mens Run,  Mens Winter, Product, Product - Men, Football, Run, Sport: Outdoor, Sport: Run,  Staples, Type_Accessories, unisex, winter, women, womens, Womens Football, Womens Run, Womens Staples, Womens Winter
  </code></pre>
  <p>As you can see - it's an absolute mess.</p>
  <p>However, I want to try and pick up within the strings where they state &quot;Gender: Men&quot;,&quot;Sport:Football&quot;, etc.</p>
  <p>Then there is the additional issue that some are tagged with 2 Genders or 3 Sports.</p>
  <p>I think my initial idea for a solution is using A LOT of case when's but I am hoping someone here has a more elegant solution.</p>