From owner-freebsd-current@FreeBSD.ORG Fri Sep 25 09:22:56 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 498941065676 for ; Fri, 25 Sep 2009 09:22:56 +0000 (UTC) (envelope-from grarpamp@gmail.com) Received: from mail-ew0-f209.google.com (mail-ew0-f209.google.com [209.85.219.209]) by mx1.freebsd.org (Postfix) with ESMTP id D72968FC17 for ; Fri, 25 Sep 2009 09:22:55 +0000 (UTC) Received: by ewy5 with SMTP id 5so741105ewy.36 for ; Fri, 25 Sep 2009 02:22:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=wbclUFDm90lVYPuRwYYPXsbAuCBhsklwTHX9W+/FYz8=; b=j1ULxnyfJfycVDb1Dbx8sQK850vz1WEqe44SdKyg1pmDVi5rtVgl8/I6Y2Mz5kvWMO +fcgoEFXAOeNyjp6iZqYItq75gJlhUOIoE7/cdAxGN32P6hQKU0pRmM+NGEDlhqLgSnv erhyAWRpmKe1nBhH38x/K/CponcBQGAx9nJ0M= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=eAqqKwPIRCC1DQyta2GBjLzNGwZ+tLb4tpQvS+VfDqp7GkFaS4AM68VAGhatZ6yEeW xFEYyi0UrxLvEwBrF00qvgqnFzDPyFMH1mpDGPm9YrZo2na+kvG+V9x8EIzsIB8RLDnF A3KTSTNtlVqkeKwSjAYGexnWtJzXW6cxF5oKE= MIME-Version: 1.0 Received: by 10.210.2.17 with SMTP id 17mr5249215ebb.46.1253870574845; Fri, 25 Sep 2009 02:22:54 -0700 (PDT) In-Reply-To: <868wg460ck.fsf@ds4.des.no> References: <868wg460ck.fsf@ds4.des.no> Date: Fri, 25 Sep 2009 05:22:54 -0400 Message-ID: From: grarpamp To: freebsd-current@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Mailman-Approved-At: Fri, 25 Sep 2009 11:54:41 +0000 Subject: Re: regex lint X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Sep 2009 09:22:56 -0000 > No, grep(1) uses the GNU regex library, while find(1) uses the > one from libc (which, among other shortcomings, is not localized). Ok. > /(foo|)/ is equivalent to /(foo)?/ I should've seen that grouping simplification. I was thinking this was all that was left to use: 'foo\.bar$|foo$' Thx.