V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
gIrl1990
V2EX  ›  问与答

相同正则, sublime 查到 10 条, grep -E 只有 3 条, why?

  •  
  •   gIrl1990 · 2019-09-03 14:33:58 +08:00 · 1318 次点击
    这是一个创建于 1698 天前的主题,其中的信息可能已经有所发展或是发生改变。
    aria2c -S "f11aa6b4313cf6d80cc523804097693a91e936c2.torrent" | grep -E "[0-9]{1,2}.720p.HDTV.x264.AC3-CHD.mkv"
    

    torrent: http://storetorrents.co/hash/F11AA6B4313CF6D80CC523804097693A91E936C2

    第 1 条附言  ·  2019-09-03 18:52:22 +08:00
    aria2c -S "f11aa6b4313cf6d80cc523804097693a91e936c2.torrent" >out.txt
    

    把结果输出到文本,然后用编辑器搜索。

    3 条回复    2019-09-04 01:34:59 +08:00
    flynaj
        1
    flynaj  
       2019-09-03 19:17:21 +08:00 via Android
    不同的编码,例如有中文,不同的正则实现都有可能
    jfcherng
        2
    jfcherng  
       2019-09-03 21:05:22 +08:00
    case-sensitive vs case-insensitive
    gIrl1990
        3
    gIrl1990  
    OP
       2019-09-04 01:34:59 +08:00
    @jfcherng 不好意思,文字看多了,一下没反应过来 /丢人~
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2680 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 11:01 · PVG 19:01 · LAX 04:01 · JFK 07:01
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.