Gentoo Archives: gentoo-user

From: n952162 <n952162@×××.de>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] search patterns in less(1)
Date: Fri, 19 Jul 2019 04:47:02
Message-Id: 15e96e0c-bc97-3712-eca7-5433ca5fad63@web.de
In Reply to: Re: [gentoo-user] search patterns in less(1) by Michael Orlitzky
1 The man page says:
2
3   The pattern is a regular expression, as recognized by
4               the regular expression library supplied by  your system
5
6 There are many regular expression libraries on my system.
7
8 Anyway, thank you for the (unexpected) tip:
9
10   man perlre
11
12 That says to use \b instead of the decades-old \<.
13
14
15 On 07/18/19 20:55, Michael Orlitzky wrote:
16 > On 7/18/19 6:40 PM, n952162 wrote:
17 >> in less(1), how do you search for a pattern at the beginning (or ending)
18 >> of a word.
19 >>
20 > Hit front slash "/" in less, and then type a perl-compatible regular
21 > expression. Specifically, try
22 >
23 > https://www.pcre.org/original/doc/html/pcrepattern.html#smallassertions
24 >
25 >
26 >> Also, where the change is  documented.
27 >>
28 > man less
29 >

Replies

Subject Author
Re: [gentoo-user] search patterns in less(1) Michael Orlitzky <mjo@g.o>
[gentoo-user] Re: search patterns in less(1) Ian Zimmerman <itz@××××××××××××.org>