Created
December 23, 2018 10:10
-
-
Save phillypb/a72b1d8648627b0425d61b7445e398d0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function extractUrlID() { | |
// example Url | |
var Url = 'https://docs.google.com/file/d/0B-FYu_D7D7x4REdtRVEzVH0eU0/edit'; | |
// 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