title: Extracting data from text using templates
body: <p>I'm building a web service which receives emails from a number of CRM-systems. Emails typically contain a text status e.g. "Received" or "Completed" as well as a free text comment.</p>
  
  <p>The formats of the incoming email are different, e.g. some systems call the status "Status: ZZZZZ" and some "Action: ZZZZZ". The free text sometimes appear before the status and somethings after. Status codes will be mapped to my systems interpretation and the comment is required too.</p>
  
  <p>Moreover, I'd expect that the the formats change over time so a solution that is configurable, possibly by customers providing their own templates thru a web interface would be ideal.</p>
  
  <p>The service is built using .NET C# MVC 3 but I'd be interested in general strategies as well as any specific libraries/tools/approaches. </p>
  
  <p>I've never quite got my head around RegExp. I'll make a new effort in case it is indeed the way to go. :)</p>