Re: [gentoo-user] search patterns in less(1)

2019-07-19 Thread Michael Orlitzky
On 7/19/19 11:28 AM, Michael Orlitzky wrote: > On 7/19/19 2:40 AM, n952162 wrote: >> The man page says: >> >>   The pattern is a regular expression, as recognized by >>   the regular expression library supplied by  your system >> >> There are many regular expression libraries on my sy

Re: [gentoo-user] search patterns in less(1)

2019-07-19 Thread Michael Orlitzky
On 7/19/19 2:40 AM, n952162 wrote: > The man page says: > >   The pattern is a regular expression, as recognized by >   the regular expression library supplied by  your system > > There are many regular expression libraries on my system. > You caught me, I did $ ldd /usr/bin/le

Re: [gentoo-user] search patterns in less(1)

2019-07-18 Thread n952162
The man page says:   The pattern is a regular expression, as recognized by   the regular expression library supplied by  your system There are many regular expression libraries on my system. Anyway, thank you for the (unexpected) tip:   man perlre That says to use \b instead of th

Re: [gentoo-user] search patterns in less(1)

2019-07-18 Thread Michael Orlitzky
On 7/18/19 6:40 PM, n952162 wrote: > in less(1), how do you search for a pattern at the beginning (or ending) > of a word. > Hit front slash "/" in less, and then type a perl-compatible regular expression. Specifically, try https://www.pcre.org/original/doc/html/pcrepattern.html#smallassertions

[gentoo-user] search patterns in less(1)

2019-07-18 Thread n952162
in less(1), how do you search for a pattern at the beginning (or ending) of a word. Elsewhere, you prepend (or append) the pattern with \< (\>) but that's not working for me with gentoo. Also, where the change is  documented.