V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
gIrl1990
V2EX  ›  问与答

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

  •  
  •   gIrl1990 · Sep 3, 2019 · 1691 views
    This topic created in 2434 days ago, the information mentioned may be changed or developed.
    aria2c -S "f11aa6b4313cf6d80cc523804097693a91e936c2.torrent" | grep -E "[0-9]{1,2}.720p.HDTV.x264.AC3-CHD.mkv"
    

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

    Supplement 1  ·  Sep 3, 2019
    aria2c -S "f11aa6b4313cf6d80cc523804097693a91e936c2.torrent" >out.txt
    

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

    3 replies    2019-09-04 01:34:59 +08:00
    flynaj
        1
    flynaj  
       Sep 3, 2019 via Android
    不同的编码,例如有中文,不同的正则实现都有可能
    jfcherng
        2
    jfcherng  
       Sep 3, 2019
    case-sensitive vs case-insensitive
    gIrl1990
        3
    gIrl1990  
    OP
       Sep 4, 2019
    @jfcherng 不好意思,文字看多了,一下没反应过来 /丢人~
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2624 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 13:14 · PVG 21:14 · LAX 06:14 · JFK 09:14
    ♥ Do have faith in what you're doing.