title: REGEX to find STRING between two values
body: <p>I have a string being received from a monitoring system, the string contains 3 variables that I am interested in the variables are <em>pre/post fixed</em> with <code>c=VAR1; e=VAR2; s=VAR3;</code> so I want to grab the text in between for example <em>c=</em> ; but am having limited success, these are a few of the REGEXs I have tested with:</p>
  
  <pre><code>c=([^;]+);
  .+c=(.+);.+
  (?&lt;=c=\()(.*?)(?=\;*\))
  c=(.*);
  </code></pre>
  
  <p>A full alert string would look similar to:</p>
  
  <pre><code>alert c=Vari Able1; e=Vari Able2; s=Vari Able3;
  </code></pre>
  
  <p>But none seem to return in the way I would expect.</p>
  
  <p>Any help is much appreciated.</p>
  
  <p>Thanks!</p>