I\'m writing a regex that will find either
.
..
...
....
followed by a space or not followe
.
characters followed by a space: /\.+ /
.
characters followed by nothing: /\.+$/
?
characters followed by a space: /\?+ /
?
characters followed by nothing: /\?+$/
To match any of these patterns: /\.+ |\.+$|\?+ |\?+$/