title: Getting the word before special character including whitespace or no whitespace
body: <p>I have a string e.g.: </p>
  
  <pre><code>string text = "select * from value='value' and testvalue = ?test and status like ?status";
  </code></pre>
  
  <p>I have tried using regular expressions:</p>
  
  <pre><code>var m = Regex.Matches(str, @"(\S+)\s+="); //with whitespace
  var m = Regex.Matches(str, @"(\S+)="); //without whitespace
  </code></pre>
  
  <p>I need to get my output in dynamic labels and textbox</p>
  
  <pre><code>output:
  label             textbox
  testvalue 
  status           
  </code></pre>
  
  <p>here in this string if already value present i dodnt want it as labels and textbox
  only with question mark and like must give me output as mentioned above
  if whitespaces present between '=', it must dicsard and give output</p>