can "." represent empty char? or just a single char?
In regex, the dot . matches a single char. It does not represent an empty char.
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.