Replace Pioneer 怎样复制字符

来源:百度知道 编辑:UC知道 时间:2024/05/05 19:01:29
例如:asdfrewq@163.com,bnmds
zxcv@sina.com,wert
改为:asdfrewq@163.com,asdfrewq,bnmds
zxcv@sina.com,zxcv,wert
请问用Replace Pioneer怎样实现?

用Replace Pioneer的正则表达式功能,把(\S+?)\@\S+?,替换成$match$1,就可以了。
详细步骤:
1. ctrl-o打开文件
2. ctrl-h打开replace窗口
在Search for Pattern输入"(\S+?)\@\S+?,"(不带双引号)
在Replace with Pattern输入"$match$1,"(不带双引号)
3. 点击Replace即完成。