A question mark (?) is the same as a regular expression dot (.)
google.com
google.com
In most common regexps, the ? operator (or \? depending on the variant) indicates that the preceding element is optional (i.e. it can occur once or not at all), whereas the dot implies a single arbitrary character.
* GNU sed - https://www.gnu.org/software/sed/manual/html_node/Regular-Expressions.html
* perl - https://perldoc.perl.org/perlre
* vi(m)/ex - https://learnbyexample.gitbooks.io/vim-reference/content/Regular_Expressions.html
* Python - https://docs.python.org/3/library/re.html