Use non-greedy wildcard

Without the non-greedy, the regex will match the *last* closing `>`.
We want it to match the first closing `>`.