URL dispatcher using regex matching