in reply to Re^2: pattern matching question
in thread pattern matching question

On the first position inside square brackets, ^ has a different meaning: it is a negation. So, [^.] means anything but a dot.