Hi,
I have problem matching a pattern for a route
The following pattern is not matched
c::set('routes', array(
array(
'pattern' => 'thing::([0-9]+)\.html',
'action' => function ($numvar) {
echo $numvar;
}
)
));
without the double colons it works perfectly (also with many other characters before the palceholder / regex)
c::set('routes', array(
array(
'pattern' => 'thing([0-9]+)\.html',
'action' => function ($numvar) {
echo $numvar;
}
)
));
this actually echos $numvar
any suggestions, workarounds are much appreaciated