GNU bug report logs - #78677
RegEx error

Previous Next

Package: grep;

Reported by: DANIL10RUS <danilleontevkek2akk <at> gmail.com>

Date: Tue, 3 Jun 2025 04:01:03 UTC

Severity: normal

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: DANIL10RUS <danilleontevkek2akk <at> gmail.com>
To: bug-grep <at> gnu.org
Subject: RegEx error
Date: Tue, 3 Jun 2025 00:25:16 +0300
[Message part 1 (text/plain, inline)]
 danil <at> archlinux ~/minecraft_server> ls purpur-*.jar | grep -i "[^a-z\-\.]"
purpur-2416.jar
danil <at> archlinux ~/minecraft_server> ls purpur-*.jar | grep -i "[^a-z\.\-]"
purpur-2416.jar


[image: изображение.png]
Hello, encountered a RegEx error. For some reason grep doesn't recognize
the “-” in \-\. but if we do \.\- it will work. Why is that?
[Message part 2 (text/html, inline)]
[изображение.png (image/png, inline)]

This bug report was last modified 12 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.