工具介绍:EditPad Pro 7——复制匹配正则表达式文本的工具
工作需要,在一个文本中提取符合正则表达式的文本,希望一次复制到剪贴板。 比如下面的需求,在下列文本中快速的复制出域名为aaa.com的地址。 http://aaa.com/ssaa http://aaa.com/ http://bbb.com/ssaa http://aaa.com/ss323/vfd http://bcc.com/ssaa/323232 http://bbb.com/323 http://aaa.com/ssaa http://ewew.com/wewe http://bbb.com/ssaa http://aewew.com/ss323/vfd http://bcc.com/ssaa/323232 http://dewew.com/323 http://aaa.com/ssaae/dewdew/dewdewww http://aew.com/ http://bbb.com/ssaa http://aaa.com/ss323/vfdewew/ http://bcc.com/ssaa/323232 http://bbb.com/323 那么第一步,写好正则表达式,并且贴在search框里面: ^http://aaa.com/[w/]*$,并且选中是正则表达式匹配 然后,在search菜单中选择高亮匹配的代码,并且选中复制匹配项,如下图: 然后就可以复制出这些文本了。 http://aaa.com/ssaa http://aaa.com/ http://aaa.com/ss323/vfd http://aaa.com/ssaa http://aaa.com/ssaae/dewdew/dewdewww http://aaa.com/ss323/vfdewew/ (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |