^x/x<notwanted>/x<y>$ ^word/word<notwanted>/word<notmeeither>$ ^word/matchme<wanted>$ ^word/word<notwanted>$ ^y/y<x>$ 

