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:
https://drive.google.com/file/d
This works in PCRE, in regex101:
^(https:\/\/drive\.google\.com\/)file\/d\/([^\/]+)\/.*$
$1uc?export=download&id=$2
Please consider bookmarking the Stack Overflow Regular Expressions FAQ for future reference.