My text file looks like this
Lastname, Firstname
Doe, John
I'm trying to get it to end like this using find replace regex
Firstname Lastname
John Doe
This regex throws the error, although using find/replace in atom editor with same pattern works fine. What am I doing wrong?
:s/(\w+),\s(\w+)/$1 $2/:g