URLPattern
open class URLPattern(input: String, baseURL: String, options: URLPatternOptions = definedExternally)(source)
The URLPattern
interface of the URL Pattern API matches URLs or parts of URLs against a pattern.
Properties
Functions
Link copied to clipboard
The exec()
method of the URLPattern interface takes a URL or object of URL parts, and returns either an object containing the results of matching the URL to the pattern, or null
if the URL does not match the pattern.
Link copied to clipboard
The test()
method of the URLPattern interface takes a URL string or object of URL parts, and returns a boolean indicating if the given input matches the current pattern.