What is the exact difference between .*
and [.]*
?
I have tried to put these inside parentheses, for back-reference, and saw the results are not the same although I don't understand why.
The .
is supposed to match any single character.
So I guess whether it's inside square brackets or not should not be important with the *
(match zero or more) operator. But it is. Why?