Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Jun 2004 21:56:43 +0200
From:      Christian Weisgerber <naddy@FreeBSD.org>
To:        Jacek Wotka <cn@team-fatal.com>
Cc:        ports@FreeBSD.org
Subject:   Re: editors/nano problem with nanorc regexps
Message-ID:  <20040630195643.GA13087@kemoauc.mips.inka.de>
In-Reply-To: <1088262580.10392.20.camel@fission>
References:  <1088262580.10392.20.camel@fission>

next in thread | previous in thread | raw e-mail | index | archive | help
Jacek Wotka:

> i don't now much about nanos design, never looked into
> the code, but i think the root of this "bug" could be
> a different implementation of regexps on (free)bsd in
> contrast to gnu/linux. i don't know if there's an
> alternative way to express what "\<" and "\>" should do,
> if there is (i didn't find one), then how does it look
> like. if there isn't, i am asking you (maintainer or
> someone else), if it can be fixed.

POSIX doesn't specify any expression to match word boundaries.
\< and \> are GNU extensions.  BSD offers [[:<:]] and [[:>:]] for
this, see re_format(7).

-- 
Christian "naddy" Weisgerber                          naddy@mips.inka.de



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