extractSecondToLastPath

Extracts the second-to-last path segment from a URL.

Returns the second-to-last segment of the URL path.

Return

The second-to-last path segment, or null if invalid URL.