Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
App-script-obtener-ID-desde-url-gdrive.md
function extractUrlID() {
// Cambia PEGALAURLAQUI por la url ejemplo https://drive.google.com/file/d/1pYOc5rVnGRZsVC9rjPbOemj2dc1E5ZYw/view url gdrive
var Url = 'PEGALAURLAQUI';
// use a regex to extract the ID
var expression = Url.match(/[-\w]{25,}/);
Logger.log(expression);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment