Created
July 6, 2014 13:16
-
-
Save benwei/ee79bf2d08cfc4603333 to your computer and use it in GitHub Desktop.
vim search and replace binary characters by regular expression
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
/\%xnn characters (nn range is 00-FF) | |
%s/\%xnn//g -- replace all \xnn characters (nn range is 00-FF) | |
%s/\%unnnn//g -- replace all unicode code 'nnnn' characters, (nn range is 0000-FFFF) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment