Don't use variable regex where we don't have to

Especially not inside that loop. That regex is so complex it slows
the minifier down drastically.