cleaning up bad regex