I\'m writing a regex that will find either
.
..
...
....
For the dots, you can use the + thing, which specifies one or more occurrences of the preceding string. Also, you'd have to escape the . and the ?, as they have special meanings in regex:
+
?
(\.+)$ (\?+)$