From: Limbo Peng <iwinux@gmail.com>
To: guile-user@gnu.org
Subject: regexp character classes not supported?
Date: Sat, 29 Dec 2012 00:39:47 +0800 [thread overview]
Message-ID: <CAE8DJyODLj4zUhOwUWTgL0oei7bYYrpt3Y44Px3aY4oNNA4R7Q@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 286 bytes --]
Hi,
I'm confused by the result of string-match:
(string-match "[0-9]+" "abc123zzz") ;; this works, giving result:
#("abc123zzz" (3 . 6))
(string-match "\\d+" "abc123zzz") ;; this doesn't work, giving result: #f
Why isn't the "\\d+" syntax (character classes) supported?
-Limbo Peng
[-- Attachment #2: Type: text/html, Size: 469 bytes --]
next reply other threads:[~2012-12-28 16:39 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-28 16:39 Limbo Peng [this message]
2012-12-28 17:22 ` regexp character classes not supported? Mark H Weaver
2012-12-28 17:41 ` Limbo Peng
2012-12-28 19:15 ` Mark H Weaver
2012-12-29 2:24 ` Limbo Peng
2013-01-06 10:47 ` Ian Price
2013-01-06 12:02 ` Klaus Schilling
2013-01-08 12:32 ` Ian Price
2013-01-14 22:41 ` Klaus Schilling
2012-12-30 11:38 ` Marco Maggi
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=CAE8DJyODLj4zUhOwUWTgL0oei7bYYrpt3Y44Px3aY4oNNA4R7Q@mail.gmail.com \
--to=iwinux@gmail.com \
--cc=guile-user@gnu.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).