From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 16 14:31:40 2019 Received: (at submit) by debbugs.gnu.org; 16 Jun 2019 18:31:40 +0000 Received: from localhost ([127.0.0.1]:41416 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hcZwJ-00077D-KK for submit@debbugs.gnu.org; Sun, 16 Jun 2019 14:31:40 -0400 Received: from lists.gnu.org ([209.51.188.17]:40883) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hcYll-00055I-KW for submit@debbugs.gnu.org; Sun, 16 Jun 2019 13:16:42 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43623) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hcYlk-0003Yr-Gr for bug-guile@gnu.org; Sun, 16 Jun 2019 13:16:41 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.9 required=5.0 tests=BAYES_50,FREEMAIL_FROM, HTML_IMAGE_ONLY_16,HTML_MESSAGE,T_REMOTE_IMAGE,URIBL_BLOCKED,WEIRD_PORT autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hcYlj-0004ol-Dp for bug-guile@gnu.org; Sun, 16 Jun 2019 13:16:40 -0400 Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]:34750) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hcYlj-0004oC-3n for bug-guile@gnu.org; Sun, 16 Jun 2019 13:16:39 -0400 Received: by mail-wr1-x429.google.com with SMTP id k11so7418046wrl.1 for ; Sun, 16 Jun 2019 10:16:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:message-id:subject:mime-version; bh=VDj2LKdtTd0lluO5q65ex7uCXppJLYUc/ZweOK4yXJU=; b=kN7Q+7rjSKj3fvWiP9dwbbhgH7QEgb84ulsccIqbf4UvDDvAdM8LhGsYBLZgLcEvFw d20LVOEvCCgIjA2WKbA43jfkLpQ3QtK+EN9DiH6EGxHUAH712b8AsD85J+cHxUkjfyMu QNv8G05lK2//US/Ej8D6A8GwLEBuG2lHSpV+bN1aWyAX+69GAd1dR0JCAiBdY5oIvgG8 tPn1NcVidbf1ylIkN3Eqho9ICbr0LQnsMRrz+tsawKT20qbuzepKiQ5Wn1KGkidklqpL G3PCDDlPiXn/p8qMrwPpo7BL+ZqVLd0haebQxIEJZZI3j1IZ047rohipRiwDjtS0PReQ p/LA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:message-id:subject:mime-version; bh=VDj2LKdtTd0lluO5q65ex7uCXppJLYUc/ZweOK4yXJU=; b=mrMg8EtsnnLkymE1wrkVLPg0zKwJt9Rz/4e8PU+O74bfpZg2sdE9GQ2L+aftVNGSJN jna7+xlcUii7lDLbNIuTGvNx5G9rF/OAPRPdAWE5w+RX2B+ooPpqhE5RdwziwnwV0k4p A0SlZvxR16EJXTGbZxrU3iCV9a8c4D92llLoMwBJ8sMbCdSP3RSbFAM7M8LTPQQnsQaj 0Ch7PsI3sSYnW+/IB2bVGS6nOOiLTVea7JcO2PwRquSlYnkgyItU5j6gh1MAQY0nWDGI RtmeHJt8sAPKHvX3pMujURcZFMVkLL4/SB83aFoC9tUauQ1CWaidj+zHQT6hWX+lihsb UKhQ== X-Gm-Message-State: APjAAAVYVj0eyC/WkNYkEwSeHoWerbXDSq8HhkzX40bulrUE+Ngqj2KY F1ZWXczrkMBHza/6S5y98Y86G3wkFhkTig== X-Google-Smtp-Source: APXvYqwnc0umvCmvjRbPkqkFD4c5Yufr86DEggdHuYeCEPzWUrk1+bV4v7vQFuV0+/d2Uv9CmoFjcA== X-Received: by 2002:adf:eb4e:: with SMTP id u14mr25990710wrn.168.1560705397231; Sun, 16 Jun 2019 10:16:37 -0700 (PDT) Received: from [192.168.1.2] ([196.188.48.118]) by smtp.gmail.com with ESMTPSA id a2sm11329444wmj.9.2019.06.16.10.16.35 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 16 Jun 2019 10:16:36 -0700 (PDT) Date: Sun, 16 Jun 2019 20:16:29 +0300 From: Abdulrahman Semrie To: bug-guile@gnu.org Message-ID: Subject: Regex library doesn't recognize ']' in a character class MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="5d06796d_2ae8944a_198" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::429 X-Spam-Score: -0.3 (/) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sun, 16 Jun 2019 14:31:39 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.3 (-) --5d06796d_2ae8944a_198 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline I am using the pattern =5B=5C=5C=5B=5C=5C=5Da-zA-Z=5D+ to match a string = with left or right bracket in it. However, the string-match function does= n=E2=80=99t match the =E2=80=98=5D=E2=80=99 character. To demonstrate wit= h an example, try the following funciton: (string-match =22=5B=5C=5C=5B=5C=5C=5Da-zA-Z=5D+=22 =22Text=5Bab=5D=E2=80= =9D) The result for the above function should have been a match structure with= Text=5Bab=5D matched. However, the string-match returns =23f which is in= correct. To test if the pattern I am using was right, I tried on regex101= .com and it works. Here (https://regex101.com/r/VAl6aI/1) is the link tha= t demonstrates that it works. Hence, the above leads me to believe there is a bug in the regex library = that mishandles =5D character in character-classes =E2=80=94 Regards, Abdulrahman Semrie --5d06796d_2ae8944a_198 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline

<= div>
I am using the pattern =5B=5C=5C=5B=5C=5C=5Da-zA-Z=5D= + to match a string with left or right bracket in it. However, the= string-match function doesn=E2=80=99t match the =E2=80= =98=5D=E2=80=99 character. To demonstrate with an example, try the= following funciton:

(string-match =22=5B=5C=5C=5B=5C=5C=5D= a-zA-Z=5D+=22 =22Text=5Bab=5D=E2=80=9D)

The result for the = above function should have been a match structure with Text=5Bab=5D= matched. However, the string-match returns = =23f which is incorrect. To test if the pat= tern I am using was right, I tried on regex101.com and i= t works. Here is the = link that demonstrates that it works.

Hence, the above leads me t= o believe there is a bug in the regex library that mishandle= s =5D character in character-classes


=E2=80= =94

Regards,

Abdulrahman Semrie

--5d06796d_2ae8944a_198-- From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 16 15:40:21 2019 Received: (at submit) by debbugs.gnu.org; 16 Jun 2019 19:40:22 +0000 Received: from localhost ([127.0.0.1]:41494 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hcb0n-0000i0-GY for submit@debbugs.gnu.org; Sun, 16 Jun 2019 15:40:21 -0400 Received: from lists.gnu.org ([209.51.188.17]:45956) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hcb0l-0000hs-N1 for submit@debbugs.gnu.org; Sun, 16 Jun 2019 15:40:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44740) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hcb0k-0005kg-FZ for bug-guile@gnu.org; Sun, 16 Jun 2019 15:40:19 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_NONE, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hcb0i-0005i4-AA for bug-guile@gnu.org; Sun, 16 Jun 2019 15:40:18 -0400 Received: from mail.tuxteam.de ([5.199.139.25]:33499) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hcb0h-0005Xg-QT for bug-guile@gnu.org; Sun, 16 Jun 2019 15:40:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tuxteam.de; s=mail; h=From:In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:To:Date; bh=BzkP0fjx5Pihuw3SSBa8YOwQEqMUnPb0StcabJ8V4es=; b=sdAgxB8Z4ELxjHRgb+L/izMpSzcsfxmjJaE4KSkxYLUVCvIvq60WUYfG6MIR2IftSdwLVNhDThcovgPObQC8XoHn9eLGhXUMDdEv46XOEA5+98wHMBIk57Cu61uBkcJJn94a79xQXjqY2HunXkvt2fngvphN+EfDjEPHFGtmTsIxiy+7zdAUPu8Gm6hMNX8dHE2jvXqyDk9BNyM9CzM5Lc+C3UpMxSU+t6epRhracFpo/jnau1ukjMnoLRnrsDHntGntblrsnYlrTiQLIng42Wp0+hBk9/3VF3oXetCv9/Tg4IpsC7UHyYjB6VMJEC13RErCzn64hn0aW7qoH2lsfA==; Received: from tomas by mail.tuxteam.de with local (Exim 4.80) (envelope-from ) id 1hcb0a-0000sc-46 for bug-guile@gnu.org; Sun, 16 Jun 2019 21:40:08 +0200 Date: Sun, 16 Jun 2019 21:40:08 +0200 To: bug-guile@gnu.org Subject: Re: bug#36251: Regex library doesn't recognize ']' in a character class Message-ID: <20190616194008.GA2901@tuxteam.de> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="yrj/dFKFPuw6o+aM" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) From: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 5.199.139.25 X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --yrj/dFKFPuw6o+aM Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Jun 16, 2019 at 08:16:29PM +0300, Abdulrahman Semrie wrote: >=20 > I am using the pattern [\\[\\]a-zA-Z]+ to match a string with left or rig= ht bracket in it. However, the string-match function doesn=E2=80=99t match = the =E2=80=98]=E2=80=99 character. To demonstrate with an example, try the = following funciton: >=20 > (string-match "[\\[\\]a-zA-Z]+" "Text[ab]=E2=80=9D) >=20 > The result for the above function should have been a match structure with= Text[ab] matched. However, the string-match returns #f which is incorrect.= To test if the pattern I am using was right, I tried on regex101.com and i= t works. Here (https://regex101.com/r/VAl6aI/1) is the link that demonstrat= es that it works. >=20 > Hence, the above leads me to believe there is a bug in the regex library = that mishandles ] character in character-classes If I understood you correctly, you are using POSIX regular expressions. Within a bracket expression ([...]), you can't escape ']' with a backslash. Just put the ] as first character, like so: [][a-zA-Z] Quoting the man page (regex(7)): A bracket expression is a list of characters enclosed in "[]". It normally matches any single character from the list (but see below). If the list begins with '^', it matches any single character (but see below) not from the rest of the list. [...] To include a literal ']' in the list, make it the first character (following a possible '^'). To include a literal '-', make it the first or last character, or the second endpoint of a range [...] See also [1], but the man page is more complete. (I'm assuming your Guile is linked against some POSIX regex library). Cheers -- t --yrj/dFKFPuw6o+aM Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAl0GmxgACgkQBcgs9XrR2kYyqQCfbhlGE6C85UpMSrg6Qg2FN4ha ldkAniI4Ws+aUcqvWAkUHSi5zm0ufFuL =Cfri -----END PGP SIGNATURE----- --yrj/dFKFPuw6o+aM-- From debbugs-submit-bounces@debbugs.gnu.org Tue Jun 18 07:10:40 2019 Received: (at 36251) by debbugs.gnu.org; 18 Jun 2019 11:10:40 +0000 Received: from localhost ([127.0.0.1]:43832 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hdC0e-0000Jf-FL for submit@debbugs.gnu.org; Tue, 18 Jun 2019 07:10:40 -0400 Received: from world.peace.net ([64.112.178.59]:44778) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hdC0a-0000JP-BW for 36251@debbugs.gnu.org; Tue, 18 Jun 2019 07:10:38 -0400 Received: from mhw by world.peace.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hdC0T-0006Y4-SJ; Tue, 18 Jun 2019 07:10:29 -0400 From: Mark H Weaver To: Abdulrahman Semrie Subject: Re: bug#36251: Regex library doesn't recognize ']' in a character class References: Date: Tue, 18 Jun 2019 07:08:06 -0400 In-Reply-To: (Abdulrahman Semrie's message of "Sun, 16 Jun 2019 20:16:29 +0300") Message-ID: <87r27rywum.fsf@netris.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 36251 Cc: 36251@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi, Abdulrahman Semrie writes: > I am using the pattern [\\[\\]a-zA-Z]+ to match a string with left or > right bracket in it. However, the string-match function doesn=E2=80=99t m= atch > the =E2=80=98]=E2=80=99 character. To demonstrate with an example, try th= e following > funciton: > > (string-match "[\\[\\]a-zA-Z]+" "Text[ab]=E2=80=9D) > > The result for the above function should have been a match structure > with Text[ab] matched. However, the string-match returns #f which is > incorrect. To test if the pattern I am using was right, I tried on > regex101.com and it works. Here (https://regex101.com/r/VAl6aI/1) is > the link that demonstrates that it works. It turns out that there are several flavors of regular expressions in common use, with different features and syntax. The link you provided is using PCRE (PHP) regular expressions (see the "flavor" pane on the left), and there are three other supported flavors on that web site. Guile's (ice-9 regex) module provides a simpler flavor of regexps known as "POSIX extended regular expressions", implemented as a thin wrapper around your system's POSIX regular expression library ('regcomp' and 'regexec'). The web site you referenced does not appear to support POSIX extended regular expressions, but here are some links about them: https://en.wikibooks.org/wiki/Regular_Expressions/POSIX-Extended_Regular_= Expressions https://pubs.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap09.html#= tag_09_04 One of the notable differences is that in POSIX extended regular expressions, character classes do not support backslash escapes, but instead use a more ad-hoc approach as described. Regards, Mark From debbugs-submit-bounces@debbugs.gnu.org Tue Jun 18 07:20:14 2019 Received: (at 36251) by debbugs.gnu.org; 18 Jun 2019 11:20:14 +0000 Received: from localhost ([127.0.0.1]:43847 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hdC9t-0000ZJ-Mx for submit@debbugs.gnu.org; Tue, 18 Jun 2019 07:20:14 -0400 Received: from mail.tuxteam.de ([5.199.139.25]:33982) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hdC9q-0000Z8-KQ for 36251@debbugs.gnu.org; Tue, 18 Jun 2019 07:20:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tuxteam.de; s=mail; h=From:In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:Date; bh=ZEwelZaSA6AIMzoCBuuN8VZqPouB+ej2fQ1UmUNY/Yc=; b=kpWhYo3HpAdecQkttyAXwBJwwYLrFXYVXJxA9J01Asq4/pCkDqA1FmnP7Zggxn0Gc5TlrzY8PJq3i3IrjPdgn4isrQ0jtuptOJdP8ngsGj4uG5eHgXfOhMSxFfrHtIkuxlTgWabiRFtEtoA8kSMiM4pfbkTPf/Z6PPb2yajZj1pxDu3a7GUc7fue0Qd4FtnEn/bG+6lla2EoQkOEztEgyUdlmxhd0HgXoN3duUhmiFuIXhviSdA3M3Kjyr6xmXPwd4JsHJqfHBb4u2MndTfH2Oj9ELv2eSmU46+RO91uGwn4YGl/s4845/I5UYANQeG2Okj0uqDwQg4WDaBDVvWofQ==; Received: from tomas by mail.tuxteam.de with local (Exim 4.80) (envelope-from ) id 1hdC9n-00053D-R4; Tue, 18 Jun 2019 13:20:07 +0200 Date: Tue, 18 Jun 2019 13:20:07 +0200 To: Mark H Weaver Subject: Re: bug#36251: Regex library doesn't recognize ']' in a character class Message-ID: <20190618112007.GB13823@tuxteam.de> References: <87r27rywum.fsf@netris.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="2B/JsCI69OhZNC5r" Content-Disposition: inline In-Reply-To: <87r27rywum.fsf@netris.org> User-Agent: Mutt/1.5.21 (2010-09-15) From: X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 36251 Cc: Abdulrahman Semrie , 36251@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --2B/JsCI69OhZNC5r Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jun 18, 2019 at 07:08:06AM -0400, Mark H Weaver wrote: > Hi, >=20 > Abdulrahman Semrie writes: >=20 > > I am using the pattern [\\[\\]a-zA-Z]+ to match a string with left or > > right bracket in it [...] > It turns out that there are several flavors of regular expressions in > common use, with different features and syntax. The link you provided > is using PCRE (PHP) regular expressions (see the "flavor" pane on the > left), and there are three other supported flavors on that web site. >=20 > Guile's (ice-9 regex) module provides a simpler flavor of regexps known > as "POSIX extended regular expressions" [...] D'oh! I forgot about Perl compatible regexps. In those, you /can/ escape things with a backslash whithin [...]. This would have explained Abdulrhama= n's confusion better. Thanks, Mark -- t --2B/JsCI69OhZNC5r Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAl0IyOcACgkQBcgs9XrR2ka1bgCfS0eOcOZLDarZQcJxdNEKp9Oe 5k4An3ANjjgFkSvQrbYfbzCOtQ0OP52I =0d3+ -----END PGP SIGNATURE----- --2B/JsCI69OhZNC5r-- From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 28 07:21:20 2019 Received: (at 36251) by debbugs.gnu.org; 28 Jun 2019 11:21:20 +0000 Received: from localhost ([127.0.0.1]:40438 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hgowR-0001qD-PY for submit@debbugs.gnu.org; Fri, 28 Jun 2019 07:21:19 -0400 Received: from maximusconfessor.all2all.org ([79.99.200.102]:39410) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hgowP-0001q4-Nz for 36251@debbugs.gnu.org; Fri, 28 Jun 2019 07:21:18 -0400 Received: from localhost (localhost [127.0.0.1]) by maximusconfessor.all2all.org (Postfix) with ESMTP id 63EC51BE00F2; Fri, 28 Jun 2019 13:21:16 +0200 (CEST) Received: from maximusconfessor.all2all.org ([127.0.0.1]) by localhost (maximusconfessor.all2all.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bMfdbxplYBOM; Fri, 28 Jun 2019 13:21:16 +0200 (CEST) Received: from capac (unknown [179.210.16.250]) by maximusconfessor.all2all.org (Postfix) with ESMTPSA id 508B01BE00EE; Fri, 28 Jun 2019 13:21:15 +0200 (CEST) Date: Fri, 28 Jun 2019 08:21:08 -0300 From: David Pirotte To: Mark H Weaver Subject: Re: bug#36251: Regex library doesn't recognize ']' in a character class Message-ID: <20190628082108.64832ccf@capac> In-Reply-To: <87r27rywum.fsf@netris.org> References: <87r27rywum.fsf@netris.org> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; boundary="Sig_/1MigTFzujYt4bgmwr=wzkel"; protocol="application/pgp-signature" X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 36251 Cc: Abdulrahman Semrie , 36251@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --Sig_/1MigTFzujYt4bgmwr=wzkel Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hello, > ... > It turns out that there are several flavors of regular expressions in > common use, with different features and syntax. The link you provided > is using PCRE (PHP) regular expressions (see the "flavor" pane on the > left), and there are three other supported flavors on that web site. > ... Fwiw, I just came across a pcre binding for guile(*), here: https://github.com/NalaGinrut/guile-pcre-ffi I didn't try it and I have no idea about the general quality and robustness= of the binding, last updated 4y ago it seems, but the code is really small, uses t= he ffi, so it should be quite easy to patch if necessary and may be fun to 'resurre= ct' ... David (*) I found it while looking for something else, here: http://sph.mn/foreign/guile-software.html --Sig_/1MigTFzujYt4bgmwr=wzkel Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEhCJlRZtBM3furJHe83T9k6MFetcFAl0V+CQACgkQ83T9k6MF etfRVgf/esYwY8ic6lyvPH9cPvK0UjXBtX5V597lArQszTh4TU/GRD5Jg9UR95qy K5bsLqDFCGOBUJ9LPm3emqiNWH/wtDN7UjFA69DUjuDWacOwGK54ycqRKjOI4t50 /XrK0ZkDNfGbubkAMr/h31S+41a8iRcNyVHVtd7E1EmOkgtI5YpMIE+g8QmlMgQ8 PH8KZe1Q1idTlhSjhLsFH60HTKfx5ICeCuk2psieNoOLak5+iDYR2EUi6T/EJ3YF /PXIVG3l7Fk0D8nsjr7Qcf2JKw/1RkalWkXE+LbgwrRiImyHxeUACFuyHNntr+6T tCOyBWz9EK5SqdSz8lYyTC052f/4/A== =RkK+ -----END PGP SIGNATURE----- --Sig_/1MigTFzujYt4bgmwr=wzkel-- From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 30 15:39:37 2019 Received: (at control) by debbugs.gnu.org; 30 Jun 2019 19:39:37 +0000 Received: from localhost ([127.0.0.1]:47310 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hhffl-0001nZ-2V for submit@debbugs.gnu.org; Sun, 30 Jun 2019 15:39:37 -0400 Received: from eggs.gnu.org ([209.51.188.92]:46651) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hhffj-0001nO-OK for control@debbugs.gnu.org; Sun, 30 Jun 2019 15:39:36 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:37769) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hhffe-0002D3-AM for control@debbugs.gnu.org; Sun, 30 Jun 2019 15:39:30 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=39982 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hhffd-0000Io-Md for control@debbugs.gnu.org; Sun, 30 Jun 2019 15:39:30 -0400 Date: Sun, 30 Jun 2019 21:39:28 +0200 Message-Id: <87d0iusw0f.fsf@gnu.org> To: control@debbugs.gnu.org From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Subject: control message for bug #36251 MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) tags 36251 notabug close 36251 quit From unknown Thu Aug 14 18:37:27 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 29 Jul 2019 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator