Accepts either a bare Google Drive ID or a full Drive/Docs URL and returns the
ID only. Handles folder URLs (.../folders/{id}), file/document URLs
(.../d/{id}/...), and ?id= query forms. A value that is already a bare ID
is returned unchanged.
Accepts either a bare Google Drive ID or a full Drive/Docs URL and returns the
ID only. Handles folder URLs (.../folders/{id}), file/document URLs
(.../d/{id}/...), and ?id= query forms. A value that is already a bare ID
is returned unchanged.