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

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

  •  
  •   kelos · Nov 9, 2015 · 3093 views
    This topic created in 4015 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
    adexbn
    Nov 9, 2015
    1
    ^/\*[ \w]*\*/
    myth
    myth
    Nov 9, 2015❤️1
    2
    /\*.*?\*/
    kelos
    kelos
    OP
    Nov 9, 2015
    3
    @myth you are awesome.
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1449 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 16:46 · PVG 00:46 · LAX 08:46 · JFK 11:46
    ♥ Do have faith in what you're doing.