• 请不要在回答技术问题时复制粘贴 AI 生成的内容
kelos
V2EX  ›  程序员

sublime 里面的 regular search 同一行多个注释的判断

  •  
  •   kelos · Nov 9, 2015 · 2739 views
    This topic created in 3855 days ago, the information mentioned may be changed or developed.
    /* test1 test2 */ a = b + c; /* wo diu lei */


    上面一行直接用 /\*.*\*/ 搜那就选中了整一行,有没有办法可以只选中头和尾的注释呢?
    3 replies    2015-11-09 10:43:05 +08:00
    adexbn
        1
    adexbn  
       Nov 9, 2015
    ^/\*[ \w]*\*/
    myth
        2
    myth  
    PRO
       Nov 9, 2015   ❤️ 1
    /\*.*?\*/
    kelos
        3
    kelos  
    OP
       Nov 9, 2015
    @myth you are awesome.
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2928 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 08:13 · PVG 16:13 · LAX 01:13 · JFK 04:13
    ♥ Do have faith in what you're doing.