add regex path pattern support.