I'm wondering what's the difference between using *
and .*
in a regex string.
I guess, *
stands for "0 to n characters" but I don't see what .*
stands for.
For example, what is the difference between: "2013*11*27"
and "2013.*11.*27"
?
If I take a look to
find . -name [pattern]
As pattern I tried : "2013.*11.*25"
and it didn't find "2013-11-25"
however, with "2013*11*25"
, it finds it.
Why ?
In unix, 0 or n occurences of wildcards is : *
, in regex .*
so why doesn't it work ?