Changes made with regex plus some manual tweaks. Find: /^\/\*.*\n(?:^\*.*\n)*^.*\*.*?[Cc]opyright.*?(\d{4}) *([0-9A-z,_\- ]+).*?\n(?:^.*\*.*\n)*^.*\*.*?SPDX-License-Identifier:? *(.+) *?\n(?:^.*\*.*\n)*.*\*\//gm Replace: /* * Copyright (c) $1 $2 * * SPDX-License-Identifier: $3 */ PR: #565