JSFiddle - React, Tailwind, and code Playground
by Arif Hasan
JavaScript
console.log(new RegExp("/spreadsheets/d/([a-zA-Z0-9-_]+)").exec("https://docs.google.com/spreadsheets/d/1v3TXxahRGTxKj-alrFZxfNY29Dhc4v8gz2i4jqWDmFw/edit#gid=0"));
by Arif Hasan
console.log(new RegExp("/spreadsheets/d/([a-zA-Z0-9-_]+)").exec("https://docs.google.com/spreadsheets/d/1v3TXxahRGTxKj-alrFZxfNY29Dhc4v8gz2i4jqWDmFw/edit#gid=0"));