Everyday Automation: Changing the Case of Text Within Code List Items

Learn how to quickly change case or other transformations on parts of code list items without touching the other parts. The example in this tutorial converts country names—both instances of each country name in 202 list items in either the HTML or JavaScript versions—from ALL CAPS to Title Case without altering the case of the surrounding code. Doing that by hand, retyping each one, would be labor intensive and error prone. It’s a bad idea. Instead, there’s a much easier, semi-automated way to make the change. To do that, each item must be expanded into its static and variable components. (Read more...)