I have set of filters in my path like this. /goods/size/:s/brand/:b/color/:c Now I want to make some of these filters optional so that I will be able to match all of the following paths. /goods /goods/size/large /goods/size/large/brand/abc/color/red /goods/brand/abc /goods/size/medium/color/green How can I do something like that? I'm expecting to have something like this. /goods(/size/:s)?(/brand/:b)?(/color/:c)? But seems it's not working.