The dot (.) is one of those special metacharacters. By itself it will match any character except the end-of-line character. The pattern that will match a line with any single character is ^.$.
-- BB
Copyright © 2003 O'Reilly & Associates. All rights reserved.