spring-framework / org.springframework.web.util / UriUtils / extractFileExtension

extractFileExtension

@Nullable open static fun extractFileExtension(path: String): String

Extract the file extension from the given URI path.

Parameters

path - the URI path (e.g. "/products/index.html")

Return
the extracted file extension (e.g. "html")

Since
4.3.2