There seems to be a timeout in Apps script when making a large regex replacement. I have a long but simple regex
[^w]asnef[^\\w]|[^\\w] 142[^\\w]|[^\\w] P