I've updated the OP of Text Transformation EXAMPLES with the following:
- EX 22: Condense Unix-style config file [shell-native Bash]
- EX 23: Remove HTML comments [shell-sed]
- EX 24: Remove HTML & Unix-style comments [shell-sed]
- EX 25: Replace specified lines [search and replace–regex]
- EX 26: Replace words retaining case [JXA]
- EX 27: Remove whitespace-only lines [regex]
- EX 28: Remove whitespace-only lines & terminating \n [regex]
For EX 25, the RegEx was adapted from Automating REGEX - Questions & Suggestions, by @noisneil.
For EX26, the JXA was adapted from MACRO: Replace Text Keep Initial Case v1.0.1, by @DanThomas.
The macro now positions and resizes the output window.