🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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?

  1. A..
  2. B.[.]+
  3. C..
  4. 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 →