GNU bug report logs - #38725
Regexp bug

Previous Next

Package: sed;

Reported by: Chewbaka Roskov <akem3210 <at> gmail.com>

Date: Mon, 23 Dec 2019 22:33:02 UTC

Severity: normal

Tags: notabug

Done: Assaf Gordon <assafgordon <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Chewbaka Roskov <akem3210 <at> gmail.com>
To: 38725 <at> debbugs.gnu.org
Subject: bug#38725: Regexp bug
Date: Mon, 23 Dec 2019 23:09:28 +0100
[Message part 1 (text/plain, inline)]
Hello,

---------------------------------------------------------------------------
akem <at> akem-HP:~$ sed --version
sed (GNU sed) 4.4
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html
>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Jay Fenlason, Tom Lord, Ken Pizzini,
and Paolo Bonzini.
GNU sed home page: <http://www.gnu.org/software/sed/>.
General help using GNU software: <http://www.gnu.org/gethelp/>.
E-mail bug reports to: <bug-sed <at> gnu.org>.
---------------------------------------------------------------------------

Regular expression bug:

akem <at> akem-HP:~$ echo '112233' | sed 's/2*//'  ### DOESN'T WORK
112233
akem <at> akem-HP:~$ echo '112233' | sed 's/1*//'  ### THIS ONE WORK
2233
akem <at> akem-HP:~$ echo 'ee112233' | sed 's/1*//'  ### BUT THIS ONE DOES NOT
ee112233

---------------------------------------------------------------------------

Best regards.
[Message part 2 (text/html, inline)]

This bug report was last modified 5 years and 210 days ago.

Previous Next


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