Skip to content

Kirby 6.0.1

$route->regex()

Converts the pattern into a full regular expression by replacing all the wildcards

$route->regex(string $pattern): string

Parameters

Name Type Default
$patternrequired string no default value

Return type

string

Parent class

Kirby\Http\Route