extractPathVariables

Extracts path variables from a matching subject. Values are URL-decoded, except for any listed in rawPathVariables which are returned verbatim. Any trailing ?query is ignored, so a subject that carries query parameters yields the same path variables as the query-less subject.

Return

A map of path variable names to their extracted values, in pattern order.

Parameters

path

The subject to extract variables from. Its path portion must match the pattern.

Throws

If the subject does not match the pattern.