Subject: Regexp bug

From: Chewbaka Roskov <[email-masked]>
Date: Mon, 23 Dec 2019 23:09:28 +0100

Hello,

---------------------------------------------------------------------------
akem@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: <[email-masked]>.
---------------------------------------------------------------------------

Regular expression bug:

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

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

Best regards.