From owner-freebsd-hackers@freebsd.org Sun Apr 16 13:48:00 2017 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2DA07D40A98 for ; Sun, 16 Apr 2017 13:48:00 +0000 (UTC) (envelope-from jilles@stack.nl) Received: from mailout.stack.nl (mailout05.stack.nl [IPv6:2001:610:1108:5010::202]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mailout.stack.nl", Issuer "CA Cert Signing Authority" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id F01681BEE for ; Sun, 16 Apr 2017 13:47:59 +0000 (UTC) (envelope-from jilles@stack.nl) Received: from snail.stack.nl (snail.stack.nl [IPv6:2001:610:1108:5010::131]) by mailout.stack.nl (Postfix) with ESMTP id 0FC7067; Sun, 16 Apr 2017 15:47:57 +0200 (CEST) Received: by snail.stack.nl (Postfix, from userid 1677) id F161428497; Sun, 16 Apr 2017 15:47:56 +0200 (CEST) Date: Sun, 16 Apr 2017 15:47:56 +0200 From: Jilles Tjoelker To: Kyle Evans Cc: freebsd-hackers@freebsd.org Subject: Re: Replacing libgnuregex Message-ID: <20170416134756.GA88424@stack.nl> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Apr 2017 13:48:00 -0000 On Tue, Apr 11, 2017 at 03:20:58PM -0500, Kyle Evans wrote: > On the other hand, I think I could fairly easily implement most of these > into libc/regex. Here's a summary of what this option entails adding to > libc/regex, from what I've found: > [snip] > * Add backreferences (\1 through \9) to EREs > [snip] Adding this enforces that EREs, like BREs, may sometimes require exponential time to match. I would prefer to avoid that. -- Jilles Tjoelker