Making regular expressions in debug function literal to try and fix
regex errors.