From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: tomas@tuxteam.de Newsgroups: gmane.emacs.help Subject: Re: Help with regexp Date: Wed, 2 Dec 2009 08:11:39 +0100 Message-ID: <20091202071139.GA6313@tomas> References: <87y6lmtnbx.fsf@galatea.local> <20091202051626.GA19970@tomas> <87pr6xnca1.fsf@fh-trier.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; x-action=pgp-signed Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1259738311 6481 80.91.229.12 (2 Dec 2009 07:18:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 2 Dec 2009 07:18:31 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 02 08:18:24 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NFjTi-0004Dx-NG for geh-help-gnu-emacs@m.gmane.org; Wed, 02 Dec 2009 08:18:22 +0100 Original-Received: from localhost ([127.0.0.1]:34793 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NFjTh-0008HI-TP for geh-help-gnu-emacs@m.gmane.org; Wed, 02 Dec 2009 02:18:21 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NFjTI-0008GF-Bm for help-gnu-emacs@gnu.org; Wed, 02 Dec 2009 02:17:56 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NFjTC-0008FU-P1 for help-gnu-emacs@gnu.org; Wed, 02 Dec 2009 02:17:54 -0500 Original-Received: from [199.232.76.173] (port=45569 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NFjTC-0008FJ-M2 for help-gnu-emacs@gnu.org; Wed, 02 Dec 2009 02:17:50 -0500 Original-Received: from alextrapp1.equinoxe.de ([217.22.192.104]:33368 helo=www.elogos.de) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NFjTB-00034c-Nz for help-gnu-emacs@gnu.org; Wed, 02 Dec 2009 02:17:50 -0500 Original-Received: by www.elogos.de (Postfix, from userid 1000) id 0CF2990049; Wed, 2 Dec 2009 08:11:39 +0100 (CET) Content-Disposition: inline In-Reply-To: <87pr6xnca1.fsf@fh-trier.de> User-Agent: Mutt/1.5.15+20070412 (2007-04-11) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:70306 Archived-At: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wed, Dec 02, 2009 at 07:03:02AM +0100, Andreas Politz wrote: > tomas@tuxteam.de writes: [...] > > Wow, Pascal. You have taught this old dog a new trick [...] [...] > Since this topic is more or less closed (modulo escaped delimiter), we > could use it to discuss the question, why using non-trivial Emacs regex= p > makes one feel like Chomsky had just written his influential book on > grammars. ;-) > Things I (won't) miss most: >=20 > - extreme backslasheritis Meaning: backslasheritis of the First Kind (aka |, (, ), {, } not having special meaning) or backslasheritis of the Second Kind (aka having to escape backslashes to get them into the string in the first place)? Mind you, I don't like it either, but any idea I had kills some aspect of Simplicity we all appreciate in Emacs :-( > - no short aliases for important constructs : > digits,symbol-constituents,newline,space Well, you always have those pesky [:stuff:] ones. They ain't so tidy, but once you get used to them they are even more readable (and they reduce the backslash density considerably). > - no zero-width matches ; look(ahead|behind) Hm. To be fair, there are some, among others \b, \B, \<, \> (and the funky \=3D, which matches at point). Yor are looking for a general zero width match? Regards - -- tom=C3=A1s -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFLFhMqBcgs9XrR2kYRAgZ/AJ4iNyq4OAinfojde4FZw1uFBzjNCgCeLw0j MHOwWQ3FXHWgs5mSB6cNB3s=3D =3DL2T1 -----END PGP SIGNATURE-----