correct regexp matching for urls