added regexp matching to url