Why does '[a-z]*' match non-alphabetical strings? – unix.stackexchange.com

I have a file alphanum with these two lines: 123 abc this is a line I am confused as to why, when I run sed 's/[a-z]*/SUB/' alphanum, I get the following output: SUB123 abc SUB is a line I was ...

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

0 Comment to "Why does '[a-z]*' match non-alphabetical strings? – unix.stackexchange.com"