title: Extracting data from plain text string
body: <p>I am trying to process a report from a system which gives me the following code</p>
  
  <pre><code>000=[GEN] OK {Q=1 M=1 B=002 I=3e5e65656-e5dd-45678-b785-a05656569e}
  </code></pre>
  
  <p>I need to extract the values between the curly brackets {} and save them in to variables. I assume I will need to do this using regex or similar? I've really no idea where to start!! I'm using c# asp.net 4.</p>
  
  <p>I need the following variables</p>
  
  <pre><code>param1 = 000
  param2 = GEN
  param3 = OK
  param4 = 1 //Q
  param5 = 1 //M
  param6 = 002 //B
  param7 = 3e5e65656-e5dd-45678-b785-a05656569e //I
  </code></pre>
  
  <p>I will name the params based on what they actually mean. Can anyone please help me here? I have tried to split based on spaces, but I get the other garbage with it! </p>
  
  <p>Thanks for any pointers/help!</p>