这是一个创建于 3387 天前的主题,其中的信息可能已经有所发展或是发生改变。
/* test1 test2 */ a = b + c; /* wo diu lei */
上面一行直接用 /\*.*\*/ 搜那就选中了整一行,有没有办法可以只选中头和尾的注释呢?
3 条回复 • 2015-11-09 10:43:05 +08:00
![adexbn](https://cdn.v2ex.com/avatar/11ca/dbfc/132721_normal.png?m=1441519481) |
|
1
adexbn 2015-11-09 10:26:51 +08:00
^/\*[ \w]*\*/
|
![myth](https://cdn.v2ex.com/gravatar/8cffa3d00d45d128326bdbf04e1b44a2?s=48&d=retro) |
|
2
myth 2015-11-09 10:39:19 +08:00 1
/\*.*?\*/
|
![kelos](https://cdn.v2ex.com/gravatar/e3312d73ebd8d341a57f1b09681ace80?s=48&d=retro) |
|
3
kelos 2015-11-09 10:43:05 +08:00
|