I have this RequestMapping:
@RequestMapping(value = \"/route/to-{destination}-from-{departure}.html\", method = {RequestMethod.GET, RequestMethod.HEAD}) <
@RequestMapping(value = \"/route/to-{destination}-from-{departure}.html\", method = {RequestMethod.GET, RequestMethod.HEAD})
try using this :->
{destination:^(?!from)+}
or
{destination:^((?!-from-).)+}