I tried the following:
# echo "12MB" | sed -e 's/[bm]\*//i'
12MB
# echo "12MB" | sed -e 's/[bm]\+//i'
12
I was expecting both to produce the same output (greedy match), but the one with the star does not. I tried also with gsed, but it was the same result.
When I tried using -E # for extended re neither of the two forms works.
An ubuntu docker container also behaves the same way.
Can someone help me understand why is that?