Fix bad regex substitution.