mis-diagnosis re: variable named hash

hash is perfectly fine, looks like it was just the regex that needed
to be escaped