removing trailing 'g' from regex

This seems to make the script work for all instances of old-style hashes in each line, not just the first