Another update to regexes in script generation.