From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: using non-Emacs regexp syntax Date: Wed, 29 Nov 2006 08:38:02 -0800 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-15" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1164818394 16941 80.91.229.2 (29 Nov 2006 16:39:54 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 29 Nov 2006 16:39:54 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 29 17:39:49 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GpSSk-00024i-Iv for ged-emacs-devel@m.gmane.org; Wed, 29 Nov 2006 17:39:10 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GpSSk-0004Gz-5R for ged-emacs-devel@m.gmane.org; Wed, 29 Nov 2006 11:39:10 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GpSST-0004ER-Nb for emacs-devel@gnu.org; Wed, 29 Nov 2006 11:38:53 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GpSSR-0004CL-O5 for emacs-devel@gnu.org; Wed, 29 Nov 2006 11:38:53 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GpSSR-0004Bv-EK for emacs-devel@gnu.org; Wed, 29 Nov 2006 11:38:51 -0500 Original-Received: from [141.146.126.228] (helo=agminet01.oracle.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1GpSSP-0005dC-HJ for emacs-devel@gnu.org; Wed, 29 Nov 2006 11:38:51 -0500 Original-Received: from rgmgw1.us.oracle.com (rgmgw1.us.oracle.com [138.1.186.110]) by agminet01.oracle.com (Switch-3.2.4/Switch-3.1.7) with ESMTP id kATGckZ5030191 for ; Wed, 29 Nov 2006 10:38:46 -0600 Original-Received: from rcsmt250.oracle.com (rcsmt250.oracle.com [148.87.90.195]) by rgmgw1.us.oracle.com (Switch-3.2.4/Switch-3.1.7) with ESMTP id kATAqDlw014517 for ; Wed, 29 Nov 2006 09:38:45 -0700 Original-Received: from dhcp-amer-whq-csvpn-gw3-141-144-84-11.vpn.oracle.com by rcsmt250.oracle.com with ESMTP id 2240088291164818287; Wed, 29 Nov 2006 09:38:07 -0700 Original-To: X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) Importance: Normal In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962 X-Whitelist: TRUE X-Whitelist: TRUE X-Brightmail-Tracker: AAAAAQAAAAI= X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:63039 Archived-At: > Is there a function to convert non-Emacs regexps (e.g. "ab(c+|d)" to > Emacs regexps (example to "ab\(c+\|d\)")? > > The first form appears to be an "extended regexp" or egrep-style regexp. > The second appears to be a "basic regexp" or grep-style regexp. > > This conversion feature in Lisp would be useful to add after the release. Very glad to hear that. I'm hoping there will also be support for toggling the newline sensitivity of dot. This means a "doc-matches-newline" mode (aka "single-line" mode) where `.' will also match newline. Please see the thread "short regexp to match any character?" from 2006/03/04 and 03/11.