getIDFromURL

Extracts the ID from a URL string.

Returns the substring after the last '/' before any query string.

Return

The extracted ID, or null if not found or empty.