加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

工具介绍:EditPad Pro 7——复制匹配正则表达式文本的工具

发布时间:2020-12-14 01:57:12 所属栏目:百科 来源:网络整理
导读:工作需要,在一个文本中提取符合正则表达式的文本,希望一次复制到剪贴板。 比如下面的需求,在下列文本中快速的复制出域名为aaa.com的地址。 http://aaa.com/ssaa http://aaa.com/ http://bbb.com/ssaa http://aaa.com/ss323/vfd http://bcc.com/ssaa/32323

工作需要,在一个文本中提取符合正则表达式的文本,希望一次复制到剪贴板。

比如下面的需求,在下列文本中快速的复制出域名为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/]*$,并且选中是正则表达式匹配

clipboard

然后,在search菜单中选择高亮匹配的代码,并且选中复制匹配项,如下图:

clipboard

然后就可以复制出这些文本了。

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/

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读