美文网首页
Notepad++ 使用正则表达式过滤字符串

Notepad++ 使用正则表达式过滤字符串

作者: babyukiss_f625 | 来源:发表于2020-12-02 14:29 被阅读0次

1. 使用正则表达式查找字符串,并将其单独一行

原始字符串:

 ``` alksdfj```

 > “我是shm,username=test@gmai.com,他是啊离开手机垫付,名字显示为username=tdded@gmail.com,我是shm,username=test@gmai.com,他是啊离开手机垫付,名字显示为username=tdded@gmail.com,我是shm,username=test@gmai.com,他是啊离开手机垫付,名字显示为username=tdded@gmail.com,我是shm,username=test@gmai.com,他是啊离开手机垫付,名字显示为username=tdded@gmail.com,我是shm,username=test@gmai.com,他是啊离开手机垫付,名字显示为username=tdded@gmail.com,我是shm,username=test@gmai.com,他是啊离开手机垫付,名字显示为username=tdded@gmail.com,我是shm,username=test@gmai.com,他是啊离开手机垫付,名字显示为username=tdded@gmail.com,我是shm,username=test@gmai.com,他是啊离开手机垫付,名字显示为username=tdded@gmail.com”

查找并替换如下截图:

2.标记出查找到的字符串

3.删除非标记行

搜索 -> 书签 -> 删除未标记行

删除前 删除后

4. 安装TextFX插件,过滤掉重复的数据

 4.1 通过TextFX过滤掉重复的字符串

去重操作 去重后的数据

相关文章

网友评论

      本文标题:Notepad++ 使用正则表达式过滤字符串

      本文链接:https://www.haomeiwen.com/subject/jjgywktx.html