From: n952162 <n952162@web.de>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] search patterns in less(1)
Date: Fri, 19 Jul 2019 06:40:50 +0000 [thread overview]
Message-ID: <15e96e0c-bc97-3712-eca7-5433ca5fad63@web.de> (raw)
In-Reply-To: <299aed14-8029-c40c-9572-9110c26471a8@gentoo.org>
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 the decades-old \<.
On 07/18/19 20:55, Michael Orlitzky wrote:
> 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
>
>
>> Also, where the change is documented.
>>
> man less
>
next prev parent reply other threads:[~2019-07-19 4:47 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-18 22:40 [gentoo-user] search patterns in less(1) n952162
2019-07-18 20:55 ` Michael Orlitzky
2019-07-19 6:40 ` n952162 [this message]
2019-07-19 15:28 ` Michael Orlitzky
2019-07-19 15:44 ` Michael Orlitzky
2019-07-19 16:29 ` [gentoo-user] " Ian Zimmerman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=15e96e0c-bc97-3712-eca7-5433ca5fad63@web.de \
--to=n952162@web.de \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox