unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: Marijn <hkBst@gentoo.org>
To: Panicz Maciej Godek <godek.maciek@gmail.com>
Cc: Mark H Weaver <mhw@netris.org>, guile-devel <guile-devel@gnu.org>
Subject: Re: bug#12665: regexp fault for closing square bracket within character class
Date: Thu, 18 Oct 2012 14:18:05 +0200	[thread overview]
Message-ID: <507FF37D.9050604@gentoo.org> (raw)
In-Reply-To: <CAMFYt2Y9fv-XfrDktn+kFBfen8k2tFaWnPSsCoNM0z9uZtCT=g@mail.gmail.com>

-----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-----



       reply	other threads:[~2012-10-18 12:18 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CAMFYt2apoaVBnmc1bOtDUq2gu643znVpJn0QH290iig5qT9-oQ@mail.gmail.com>
     [not found] ` <87txtsqt1y.fsf@tines.lan>
     [not found]   ` <CAMFYt2Y9fv-XfrDktn+kFBfen8k2tFaWnPSsCoNM0z9uZtCT=g@mail.gmail.com>
2012-10-18 12:18     ` Marijn [this message]
2012-10-18 17:26       ` bug#12665: regexp fault for closing square bracket within character class Mark H Weaver

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=507FF37D.9050604@gentoo.org \
    --to=hkbst@gentoo.org \
    --cc=godek.maciek@gmail.com \
    --cc=guile-devel@gnu.org \
    --cc=mhw@netris.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).