匹配一个 url, 后面带的参数名称固定,但是位置不固定,例如:
/catogary?sort=1&type=2&page=3
其中,参数名称 sort,type,page是固定的,但是位置不固定,并且每个参数都可以单独存在,也可以都没有,也可以两两组合,如下:
/catogary
/catogary?sort=1
/catogary?sort=1&type=2
/catogary?sort=1&type=2&page=3
/catogary?type=2
/catogary?type=2&page=3
/catogary?type=2&sort=1
/catogary?page=3
/catogary?page=3&type=2
/catogary?page=3&sort=1
等等等等~~~~
求这个正则怎么写
这样可以,但是 sort, type 和 page 理论上可以重复
