Using regex for path value of routes in angular2
问题 I want to configure route for my angular2 application. My URL needs to be like this: http://domain_name/constant_value/variable_value/constant_value The url can be like following examples: http://localhost/myhouse/floor1/mirror http://localhost/myhouse/floor1/room1/mirror http://localhost/myhouse/floor1/room1/bathroom/mirror Here the routes /myhouse and /mirror are constant. But the middle part can be anything like /floor1 or /floor2/something/something/.... How can i define a route for that