Last active
December 11, 2015 05:28
-
-
Save aaronott/4551982 to your computer and use it in GitHub Desktop.
regexp to switch firstname.lastname@email.com to lastname.firstname@email.com
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%s/\(\w\+\).\(\w\+\)@/\2.\1@/ | |
In vim, this will take a pattern such as firstname.lastname@email.com | |
and replace it with lastname.firstname@email.com |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment