Skip to content

Kirby 5.0.4

$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

This method modifies the existing $route object it is applied to and returns it again.

Parent class

Kirby\Http\Route