(:alpha)
Matches any characters between a-z & A-Z
Example
return [
'routes' => [
[
'pattern' => '/projects/(:alpha)',
'action' => function (string $path) {
// react to requests
}
]
]
];
Matches any characters between a-z & A-Z
return [
'routes' => [
[
'pattern' => '/projects/(:alpha)',
'action' => function (string $path) {
// react to requests
}
]
]
];