I have the following text:
aa
bb cc
dd
ee ff gg
I want to get match on every line until the last character that is not space.
This is what I want:
aa
bb cc
dd
ee ff gg
I tried to follow:
Match until the next (and not the last) space after a specific pattern
And use:
.* [^ ]*
But it doesn't help.