Is there a shortcut for word boundary in `less`?

后端 未结 4 809
情书的邮戳
情书的邮戳 2021-01-11 12:22

This is the less I am using:

less 458 (POSIX regular expressions)
Copyright (C) 1984-2012 Mark Nudelman

In Vim it is \\< a

4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-11 13:14

    The character classes [[:<:]] and [[:>:]] match beginning and end of word, respectively, in system less on OS X 10.11.5. I haven't found a way to make the documented short forms \<, \>, or \b work.

    (Thanks to denis for the suggestion to check man 7 re_format.)

提交回复
热议问题