I want to use regular expressions to replace things at the start/end of all words in a file. Here are some example cases:
- words ending in "ing" get changed to end in "gni": clearing = cleargni
- words starting with "sub" get changed to start with "bus": subtract = bustract
How can I isolate these words in a list and apply the example changes? All words are lowercase.