Update a diff substitution pattern.