$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.