My route (slug contains dashes!):
region:
pattern: /regione/{slug}-{id}
defaults: { _controller: SWAItaliaInCifreBundle:Default:region }
<
if you try this it will throw a error like this:
An exception has been thrown during the rendering of a template ("Parameter "slug" for route "routing_whatever" must match "[a-zA-Z0-9-_/]+" ("Topics/Virtualization Security" given).") in ...
as viewed in http://symfony.com/doc/current/cookbook/routing/slash_in_parameter.html you must use:
slug: ".+"