Skip to content

Kirby 3.8.4

(:alphanum)

Matches any characters between a-z, A-Z & 0-9

Example

/site/config/config.php
return [
  'routes' => [
    [
      'pattern' => '/projects/(:alphanum)',
      'action'  => function (string $path) {
        // react to requests
      }
    ]
  ]
];