As a test I have tried on vim
/\v^('\w+')( .. )('\d+'), :%s//\3\2\1,
OBS: I have used the caret as if the pattern started at the begining of line but we can also cosider the space optional
/\v^(\s+)?('\w+')( .. )('\d+'), :%s//\1\4\3\2
Another tip: Using neovim we have the "inccommand" that allow us to match our regex icrementally. Then we can refer to our search simply by using //
//
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
As a test I have tried on vim
OBS: I have used the caret as if the pattern started at the begining of line but we can also cosider the space optional
Another tip: Using neovim we have the "inccommand" that allow us to match our regex icrementally. Then we can refer to our search simply by using
//