I'm having trouble getting vim find / replace to remove all words in the string except the last one, i.e. in the SQL bit, it would be nice to create a list of all the aliases from the code group
select column_a alias_a, column_b alias_b, column_c alias_c from ...
I would just generate a list
alias_a, alias_b, alias_c
Therefore, I think that I want to delete all words that are not immediately followed by a comma and a line ending with
source share