Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Jan 2002 17:41:47 +0100 (CET)
From:      Oliver Fromme <olli@secnetix.de>
To:        freebsd-questions@FreeBSD.ORG
Subject:   Re: word delimiter (\>, \b) and regex-lib in less
Message-ID:  <200201021641.g02Gfld62224@lurza.secnetix.de>
In-Reply-To: <20020102170930.A24563@bs13.bsag.ch>

next in thread | previous in thread | raw e-mail | index | archive | help
Hanspeter Roth <hanspeter_roth@hotmail.com> wrote:
 > In the Linux installation of less there is a word delimiter (\<, \>)
 > available (like in vim). This is especially convenient when searching
 > for small words.
 > The Bsd installation doesn't seem to have some kind of word
 > delimiter, neither \<, \> nor \b.
 > I tried to play with the less port and tried different
 > regex-libraries. But none of them doesn't seem to support one of
 > those word delimiters.
 > 
 > Is there some alternate library with some other word delimiter?
 > Does the Posix regex library habe a word delimiter? Which one?
 > Maybe the one of the regexx port? If yes can one link the less port
 > with the regexx library? How?

From the re_format(7) manpage:

    the bracket expressions `[[:<:]]' and `[[:>:]]' match the
    null string at the beginning and end of a word respectively

Which works fine with the standard "less", out of the box.

Regards
   Oliver

-- 
Oliver Fromme, secnetix GmbH & Co KG, Oettingenstr. 2, 80538 München
Any opinions expressed in this message may be personal to the author
and may not necessarily reflect the opinions of secnetix in any way.

"All that we see or seem is just a dream within a dream" (E. A. Poe)

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200201021641.g02Gfld62224>