From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Marijn Newsgroups: gmane.lisp.guile.devel Subject: Re: bug#12665: regexp fault for closing square bracket within character class Date: Thu, 18 Oct 2012 14:18:05 +0200 Message-ID: <507FF37D.9050604@gentoo.org> References: <87txtsqt1y.fsf@tines.lan> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1350562241 14956 80.91.229.3 (18 Oct 2012 12:10:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 18 Oct 2012 12:10:41 +0000 (UTC) Cc: Mark H Weaver , guile-devel To: Panicz Maciej Godek Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Thu Oct 18 14:10:47 2012 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TOow0-0004Pf-3z for guile-devel@m.gmane.org; Thu, 18 Oct 2012 14:10:44 +0200 Original-Received: from localhost ([::1]:35380 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TOovs-00079i-QZ for guile-devel@m.gmane.org; Thu, 18 Oct 2012 08:10:36 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:39499) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TOovl-000784-QK for guile-devel@gnu.org; Thu, 18 Oct 2012 08:10:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TOove-0008Jb-5q for guile-devel@gnu.org; Thu, 18 Oct 2012 08:10:28 -0400 Original-Received: from smtp.gentoo.org ([140.211.166.183]:42673) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TOovd-0008Io-WC for guile-devel@gnu.org; Thu, 18 Oct 2012 08:10:22 -0400 Original-Received: from [10.200.46.33] (unknown [79.170.210.172]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: hkbst) by smtp.gentoo.org (Postfix) with ESMTPSA id 1DE6233D7EC; Thu, 18 Oct 2012 12:10:11 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120924 Thunderbird/15.0.1 In-Reply-To: X-Enigmail-Version: 1.4.4 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 140.211.166.183 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:15000 Archived-At: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 18-10-12 11:44, Panicz Maciej Godek wrote: >> As documented in "Syntax of Regular Expressions" of the Emacs >> manual (to which section 6.15 of the Guile manual refers): >> >> To include a `]' in a character set, you must make it the first >> character. For example, `[]a]' matches `]' or `a'. To include >> a `-', write `-' as the first or last character of the set, or >> put it after a range. Thus, `[]-]' matches both `]' and `-'. > > OK, I see. I guess I got used to PCRE for too long :) Sorry for my > mistake. ``Regular expressions crammed into string-syntax'' really needs to be deprecated in Scheme implementations. SRE[1][2] is more expressive and doesn't suffer from such exceptions. Marijn [1]:http://sjamaan.ath.cx/posts/lispy-dsl-sre.html [2]:http://www.scsh.net/docu/post/sre.html -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://www.enigmail.net/ iEYEARECAAYFAlB/830ACgkQp/VmCx0OL2w8UACcCYQ6pBYs2cbBS2CrdlnkYmuY 5gcAnj6fDJfQRS2Rm+IwpaTSgaeN/Ev/ =EZq3 -----END PGP SIGNATURE-----