VS Code has a search & replace feature that lets you use regex to look for patterns and then reference groups in the replacement... But it lets you do something else that's really cool. Changing casing with special sequences When you are replacing groups, you can use special sequences to change the casing of the group you're inserting, according to the following table: The picture below shows an example of a search & replace operation where I looked for the text "all in one go".
Regolith is a server-side library that provides a safe Regex alternative in TypeScript and JavaScript, protecting against Regular Expression Denial of Service (ReDoS) attacks.