You have all the tools you need to get the script working. I'm thinking that regular expressions may not be a solution after all.
There does not seem to be any pattern to the data, although I did find Waldo
It's one thing to replace all the q1 with Q50, it's another to have leading quotes, leading spaces and leading numeric characters along with trailing quotes, trailing spaces and trailing characters with different rules as to when to make a replacement..
For example, if you use the double quotes in the pattern, you need to use them in the replacement string. This sounds simple enough until you find newly quoted strings that never had quotes in the original text. If you don't use quotes in the pattern, you run the risk of making replacements that shouldn't be made.
It might be easier to parse each word and decide whether to make a replacement or not. In this manner you could change the pattern depending on the chunk of data you've parsed.
Good luck.