V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
gaobing
V2EX  ›  Python

自动裁剪掉 csdn 复制的小尾巴--Windows 剪切板正则提取工具

  •  
  •   gaobing ·
    gaoice · 2019-05-29 10:23:19 +08:00 · 1650 次点击
    这是一个创建于 1765 天前的主题,其中的信息可能已经有所发展或是发生改变。

    一个可以对剪切板监听,设置正则表达式进行过滤的小工具。 使用场景: 通过设置正则 ^([\s\S]*)---------------------[\s\S]*转载请附上博文链接!$ 复制代码的时候可以裁剪掉 csdn 强制的小尾巴,免得打断思路。 当然,如果是复制文章,还是要遵守人家规定的。

    Github: https://github.com/gaoice/python-tools 打包好的 exe: https://pan.baidu.com/s/1hs94Qdm4gS_j6pdaOGc_qA 提取码: jcmi,进去下载 ClipboardFormat 这个压缩包。

    ❤❤❤

    4 条回复    2019-05-29 13:03:20 +08:00
    gzlock
        1
    gzlock  
       2019-05-29 11:33:58 +08:00 via Android
    禁用 CSDN 域名的 js 就完事了
    gaobing
        2
    gaobing  
    OP
       2019-05-29 11:42:48 +08:00
    @gzlock 是的。这个主要是实现剪切板正则过滤提取,拿 csdn 举了个使用场景的栗子。🤝
    Foxkeh
        3
    Foxkeh  
       2019-05-29 12:46:04 +08:00 via iPhone
    阅读模式,格式不丢
    openmynet
        4
    openmynet  
       2019-05-29 13:03:20 +08:00
    window.getSelection=()=>{}
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   959 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 21:44 · PVG 05:44 · LAX 14:44 · JFK 17:44
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.