From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tom Newsgroups: gmane.emacs.devel Subject: Re: Patch for lookaround assertion in regexp Date: Mon, 23 Jan 2012 15:19:58 +0000 (UTC) Message-ID: References: <009001ccd9c0$9bde09f0$d39a1dd0$@cfraizer.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1327332037 26494 80.91.229.12 (23 Jan 2012 15:20:37 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 23 Jan 2012 15:20:37 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 23 16:20:34 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RpLhA-0002GL-IG for ged-emacs-devel@m.gmane.org; Mon, 23 Jan 2012 16:20:32 +0100 Original-Received: from localhost ([::1]:38529 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RpLh9-0005nU-VW for ged-emacs-devel@m.gmane.org; Mon, 23 Jan 2012 10:20:31 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:48379) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RpLh2-0005lN-GX for emacs-devel@gnu.org; Mon, 23 Jan 2012 10:20:29 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RpLgt-0000KU-4G for emacs-devel@gnu.org; Mon, 23 Jan 2012 10:20:24 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:60347) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RpLgr-0000JQ-Se for emacs-devel@gnu.org; Mon, 23 Jan 2012 10:20:14 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1RpLgo-000228-6j for emacs-devel@gnu.org; Mon, 23 Jan 2012 16:20:10 +0100 Original-Received: from 94-21-76-61.pool.digikabel.hu ([94.21.76.61]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 23 Jan 2012 16:20:10 +0100 Original-Received: from adatgyujto by 94-21-76-61.pool.digikabel.hu with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 23 Jan 2012 16:20:10 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 25 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: sea.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 94.21.76.61 (Opera/9.80 (Windows NT 6.1; U; en) Presto/2.10.229 Version/11.60) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:147850 Archived-At: Andreas Schwab linux-m68k.org> writes: > > Tom gmail.com> writes: > > > Why not use simply PCRE with a bridge layer which translates from emacs > > regexp format to PCRE? AFAIK the emacs regexes are more or less a subset > > of PCRE, so the translation shouldn't be very difficult. > > Does PCRE implement \c and \s? If it doesn't then it's a job for the translation layer. Char syntaxes and categories could be converted into the standard [...] format. I don't know how efficient it would be, it should be tested, but pcre can compile regexps too. I don't know if emacs uses some precompiled format internally if the same regexp is used again and again. > Does PCRE provide an interface for searching a memory region with a gap? > I don't know it should be checked, but other editors use PCRE as their regex search engine, so there may be some support for that.