title: Regex in C# How to replace only capture groups and not non-capture groups
body: <p>I am writing a regular expression in Visual Studios 2013 Express using C#. I am trying to put single quotes around every single string that includes words and !@#$%^&amp;*()_- except for:</p>
  
  <ul>
  <li>and</li>
  <li>or</li>
  <li>not</li>
  <li>empty()</li>
  <li>notempty()</li>
  <li>currentdate()</li>
  <li>any string that already has single quotes around it.</li>
  </ul>
  
  <p>Here is my regex and a sample of what it does:
  <a href="https://regex101.com/r/nI1qP0/1" rel="nofollow">https://regex101.com/r/nI1qP0/1</a></p>
  
  <p>I want put single quotes only around the capture groups and leave the non-capture groups untouched. I know this can be done with lookarounds, but I don't know how.</p>