Symfony\Component\Routing\RouteCompiler::computeRegexp
Computes the regexp used to match a specific token. It can be static text or a subpattern.
Signature
private function computeRegexp(array
$tokens,
integer
$index,
integer
$firstOptional )
Parameters
$tokens
— array- The route tokens
$index
— integer- The index of the current token
$firstOptional
— integer- The index of the first optional token
Returns
- string
- The regexp pattern for a single token