I'm looking for a shortcut for loading back-reference groups using the same separator. Such a beast may not exist but it would be useful to me if it does. An example:
Starting with this string
:111 222 333 444 555
applying this pattern
:%s/\(\d\+\) \(\d\+\) \(\d\+\) \(\d\+\) \(\d\+\)/\5 \4 \3 \2 \1/g
will give me this result
:555 444 333 222 111
What I'm looking for is something to replace the match,
:\(\d\+\) \(\d\+\) \(\d\+\) \(\d\+\) \(\d\+\)
by giving it a pattern and a separator, and have it load as many groups as match.
::%s/<"\(\d\+\) ">/\5 \4 \3 \2 \1/g
Is there a way to do this? Thanks!