title: How do I match a regex pattern and extract data from it
body: <p>I can have 0 or many substrings within a text area in the format <code>{key-value}Some text{/key}</code>, </p>
  
  <p>For example <code>This is my {link-123}test{/link} text area</code> </p>
  
  <p>I'd like to iterate through any items that match this pattern, perform and action based on the key and value, then replace this substring with a new string (a anchor link that is retreived by the action based on the key).</p>
  
  <p>How would I achieve this in C#?</p>