In regular expressions, what does the dot . match by default in Python?
Correct answer
B. Any character except a newline
13 views
B. Any character except a newline
13 views
The dot matches any single character apart from newline unless DOTALL is set.
Asked in: Python Interview Standard Library
https://docs.python.org/3/library/index.htmlNot sure why the answer is B? Ask here and get an explanation.