How to slim framework to convey routing value with a dot?

API version to be transmitted in response slim but says 404 appear the problem dotes of the addressI

slim 2.6 *

Sample request


am doing
$app->get(’/api/:ver’, function ($ver) use ($app,$DB) {
echo $ver;
})->conditions(array(‘ver’ => ‘^v[0-9].[0-9].[0-9]’));

Look at []

Guess you have to escape the dots \.
Not sure if the ^ is needed either.

$app->get('/test/v:ver', function ($ver) use ($app,$DB) {
	echo $ver.'--';
	'ver' 	=> '[0-9]\.[0-9]'

The requested resource /test/v10.0 was not found on this server.