From owner-freebsd-questions@FreeBSD.ORG Fri Mar 9 04:41:38 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D1BCD106566C for ; Fri, 9 Mar 2012 04:41:38 +0000 (UTC) (envelope-from carlj@peak.org) Received: from redcondor2.peak.org (redcondor2.peak.org [69.59.192.56]) by mx1.freebsd.org (Postfix) with ESMTP id 917EE8FC18 for ; Fri, 9 Mar 2012 04:41:38 +0000 (UTC) Received: from zmail-mta02.peak.org ([207.55.16.112]) by redcondor2.peak.org ({6c724cae-de34-4c5f-b615-3072b86419fa}) via TCP (outbound) with ESMTP id 20120309044137864 for ; Fri, 09 Mar 2012 04:41:37 +0000 X-RC-FROM: X-RC-RCPT: Received: from birch.localnet (unknown [207.55.106.132]) by zmail-mta02.peak.org (Postfix) with ESMTPSA id 6573748984B for ; Thu, 8 Mar 2012 20:41:37 -0800 (PST) Received: from oak.localnet (oak.localnet [192.168.193.34]) by birch.localnet (Postfix) with ESMTP id BA24D55B5D for ; Thu, 8 Mar 2012 20:41:35 -0800 (PST) Received: from oak.localnet (localhost.localnet [127.0.0.1]) by oak.localnet (Postfix) with ESMTP id 62101C492 for ; Thu, 8 Mar 2012 20:41:35 -0800 (PST) Received: (from carlj@localhost) by oak.localnet (8.14.4/8.14.4/Submit) id q294fZ5W065927; Thu, 8 Mar 2012 20:41:35 -0800 (PST) (envelope-from carlj@peak.org) X-Authentication-Warning: oak.localnet: carlj set sender to carlj@peak.org using -f From: Carl Johnson To: freebsd-questions@freebsd.org References: <20120309000848.0e82a736@gumby.homeunix.com> Mail-Followup-To: freebsd-questions@freebsd.org Date: Thu, 08 Mar 2012 20:41:35 -0800 In-Reply-To: <20120309000848.0e82a736@gumby.homeunix.com> (RW's message of "Fri, 9 Mar 2012 00:08:48 +0000") Message-ID: <87wr6u9yio.fsf@oak.localnet> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: libc regex word-boundary support fallen-off? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Mar 2012 04:41:38 -0000 RW writes: > I've noticed for some time that claws-mail and less (which I think use > libc's regex(3)) don't support word boundaries in searches. I might be > delusional, but I think I've used \b in the past in both of those > applications in FreeBSD. > > According to regex(3) it's an implementation POSIX.2, so the feature > needn't be supported, but at the bottom of the page it says > "word-boundary matching is a bit of a kludge", so presumably it has > been. > > Does anyone know what's going on? > > > I switched from i386 to amd64 last year so it might be something to do > with that. I'm currently using 8.2p6. The only way I have found to do it is [[:<:]] and [[:>:]]. That is very awkward, so I't love to hear of a shorter way. I found them in the re_format(7) manpage. -- Carl Johnson carlj@peak.org