Only replaces the first instance of the matched item in a file. ``` js { replacements: [ { pattern: /process\.env\.[A-Z\d_]+/, replacement: function(match, p1, offset, string) { return process.env[match.replace(/process\.env\./, '')]; } } ] } ```