Flipped the term generating regex