1.利用notepad++的正则表达式替换功能
000102030405060708090a0b0c0d0e0ff0f1f2f3f4f5f6f7f8f9fafbfcfdfeff
正则搜索串([0-9a-fA-F]{2}),替换串0x\1,结果:
0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0xf0,0xf1,0xf2,0xf3,0xf4,0xf5,0xf6,0xf7,0xf8,0xf9,0xfa,0xfb,0xfc,0xfd,0xfe,0xff,
反向替换,搜索串0x([0-9a-fA-F]{2}),替换串\1,结果:
000102030405060708090a0b0c0d0e0ff0f1f2f3f4f5f6f7f8f9fafbfcfdfeff
2.利用notepad++的宏功能
1)鼠标点击字符串开头,点击“宏”->"开始录制",
2)输入"0x",光标右移两个数字,输入",",点击“宏”->"停止录制"。
3)点击“宏”->"重复运行宏",输入运行31次。