only match whole url segment if regex not negated