title: Alternative to positive lookbehind for MS Word
body: <p>I have a Word document with improperly formatted SQL exported from Access. I am trying to add double quotes around columns that are renamed with the AS keyword.</p>
  <pre><code>SELECT ID_NO,
     Sum(QTY) AS Qty,
     '8500' AS Acct Number, 
     Sum(AMOUNT) AS 07_STD_Xtnd
  FROM ...
  </code></pre>
  <p>Should be:</p>
  <pre><code>SELECT ID_NO,
     Sum(QTY) AS &quot;Qty&quot;,
     '8500' AS &quot;Acct Number&quot;, 
     Sum(AMOUNT) AS &quot;07_STD_Xtnd&quot;
  FROM ...
  </code></pre>
  <p>I was able to write this RegEx that matches the column names using positive lookbehind:</p>
  <pre><code>(?&lt;=\sas\s)(.*?)(?=[,\r\n])
  </code></pre>
  <p><a href="https://regex101.com/r/LwCZZ5/1" rel="nofollow noreferrer">https://regex101.com/r/LwCZZ5/1</a></p>
  <p>In Word, positive lookbehind apparently doesn't work. How can I rewrite this without positive lookbehind?</p>