推荐学习书目
› 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 · May 29, 2019 · 2461 views
    This topic created in 2704 days ago, the information mentioned may be changed or developed.

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

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

    ❤❤❤

    4 replies  •  2019-05-29 13:03:20 +08:00
    gzlock
        1
    gzlock  
       May 29, 2019 via Android
    禁用 CSDN 域名的 js 就完事了
    gaobing
        2
    gaobing  
    OP
       May 29, 2019
    @gzlock 是的。这个主要是实现剪切板正则过滤提取,拿 csdn 举了个使用场景的栗子。🤝
    Foxkeh
        3
    Foxkeh  
       May 29, 2019 via iPhone
    阅读模式,格式不丢
    openmynet
        4
    openmynet  
       May 29, 2019
    window.getSelection=()=>{}
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2056 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 00:37 · PVG 08:37 · LAX 17:37 · JFK 20:37
    ♥ Do have faith in what you're doing.