From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/48575 Path: main.gmane.org!not-for-mail From: Norbert Koch Newsgroups: gmane.emacs.gnus.general Subject: Re: [patch] More buttons for emacs stuff, MIDs, mail addresses Date: Thu, 02 Jan 2003 19:16:15 +0100 Sender: owner-ding@hpc.uh.edu Message-ID: References: <3D6FED17.6040201@yahoo.com.cn> <878yy3qvo8.fsf@enberg.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1041531396 7035 80.91.224.249 (2 Jan 2003 18:16:36 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 2 Jan 2003 18:16:36 +0000 (UTC) Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18U9tS-0001pF-00 for ; Thu, 02 Jan 2003 19:16:34 +0100 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 18U9tf-0002jp-00; Thu, 02 Jan 2003 12:16:47 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Thu, 02 Jan 2003 12:17:39 -0600 (CST) Original-Received: from sclp3.sclp.com (sclp3.sclp.com [66.230.238.2]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id MAA24230 for ; Thu, 2 Jan 2003 12:17:24 -0600 (CST) Original-Received: (qmail 3429 invoked by alias); 2 Jan 2003 18:16:26 -0000 Original-Received: (qmail 3424 invoked from network); 2 Jan 2003 18:16:26 -0000 Original-Received: from mailout05.sul.t-online.com (194.25.134.82) by 66.230.238.6 with SMTP; 2 Jan 2003 18:16:26 -0000 Original-Received: from fwd06.sul.t-online.de by mailout05.sul.t-online.com with smtp id 18U9tI-0007Hj-0C; Thu, 02 Jan 2003 19:16:24 +0100 Original-Received: from viteno.dyns.net (520054833674-0001@[217.230.10.94]) by fmrl06.sul.t-online.com with esmtp id 18U9tA-1M72WmC; Thu, 2 Jan 2003 19:16:16 +0100 Original-Received: from nk by viteno.dyns.net with local (Exim 4.10) id 18U9tA-000CMq-00 for ding@gnus.org; Thu, 02 Jan 2003 19:16:16 +0100 Original-To: ding@gnus.org X-Attribution: viteno X-Face: 9,{UOz`879Gt1t?~vOo"iN!BBRwO (Henrik Enberg's message of "Thu, 02 Jan 2003 19:00:07 +0100") User-Agent: Gnus/5.090008 (Oort Gnus v0.08) XEmacs/21.4 (Native Windows TTY Support, i386-unknown-freebsd4.7) X-Sender: 520054833674-0001@t-dialin.net Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:48575 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:48575 Henrik Enberg writes: Hi! > Reiner Steib <4uce.02.r.steib@gmx.net> writes: > >> [1] E.g., what's the Lisp-RE equivalent for "^[0-9][0-9a-fA-F]{3,3}"? > ^^^^^ > > This works in Emacs 21. Dunno about XEmacs. XEmacs (at least the 21.4 series) knows about {n,m}, but you need to quote it: `\{n,m\}' serves as an interval quantifier, analogous to `*' or `+', but specifies that the expression must match at least N times, but no more than M times. This syntax is supported by most Unix regexp utilities, and has been introduced to XEmacs for the version 20.3. Unfortunately, the non-greedy version of this quantifier does not exist currently, although it does in Perl. Thus, the expanded version seems to be more safe. norbert.