From: Douglas Lewan <d.lewan2000@gmail.com>
To: help-gnu-emacs <help-gnu-emacs@gnu.org>
Subject: Regular expression grouping not working?
Date: Sat, 8 Feb 2020 14:17:54 -0500 [thread overview]
Message-ID: <02a28c91-d67d-e76a-c2a7-41b82d6b023f@gmail.com> (raw)
I'm writing some code that includes the regular expression \\([^/]+/\\),
(looking for a path on GNU/Linux) which doesn't match what I expect it
should.
On the other hand, the regular expression [^/]+/, exactly the regular
expression within the first, does match.
That seems wrong somehow. Is there something I'm missing?
--
,Doug
d.lewan2000@gmail.com
(908) 720 7908
Isn't there a difference between "acquittal" and "exoneration"?
next reply other threads:[~2020-02-08 19:17 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-08 19:17 Douglas Lewan [this message]
2020-02-08 19:30 ` Regular expression grouping not working? Teemu Likonen
2020-02-08 19:48 ` Douglas Lewan
2020-02-17 0:15 ` Göktuğ Kayaalp
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=02a28c91-d67d-e76a-c2a7-41b82d6b023f@gmail.com \
--to=d.lewan2000@gmail.com \
--cc=help-gnu-emacs@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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.