← Quiz: Regular Expressions in Python: all 10 questions
Quiz: Regular Expressions in Python · Question 9 of 10
How do you match a real full stop in a pattern?
How do you match a real full stop in a pattern?
- A..
- B.[.]+
- C..
- D.dot
Answer & explanation
Correct answer: .
A plain . matches any character; the backslash makes it a literal dot. (Inside [ ] a dot is also literal.)
Can you get the rest right without peeking?
Take the timed Quiz: Regular Expressions in Python quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →