Should there be really be two regular expressions to match the url?