title: Regex to modify Google Drive shared file URL
body: <p>I'm trying to create a script to convert a regular google drive share URL to a direct download URL. The raw URL looks like this:</p>
  
  <pre><code>https://drive.google.com/file/d/FILE_ID/edit?usp=sharing
  </code></pre>
  
  <p>and needs to be converted to look like this:</p>
  
  <pre><code>https://drive.google.com/uc?export=download&amp;id=FILE_ID
  </code></pre>
  
  <p>So I'm trying to make my regex, which I'm not very experienced with, to grab the needed text to be deleted/changed. I'm using RegExr to try to create it, but I only get as far as </p>
  
  <pre><code>/file/d/
  </code></pre>
  
  <p>I've tried a negative lookahead, but it doesn't seem to work. Any suggestions?</p>