help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Regular expression grouping not working?


From: Douglas Lewan
Subject: Regular expression grouping not working?
Date: Sat, 8 Feb 2020 14:17:54 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]