title: Replacing Regex matches using lambda expression
body: <p>I'm looking for a simple regex find and replace solution were I can just provide a lambda expression for replacing each matches. E.g:</p>
  
  <pre><code>regex.MatchReplace(text, match =&gt; "replacement string");
  </code></pre>
  
  <p>This way I can create my own logic for generating the replacement string which may involve invoking various methods etc. i.e. things you can't do with substitution patterns. Anyone know how I can accomplish this?</p>