🎙 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 4 of 10

What does [^aeiou] match?

What does [^aeiou] match?

  1. A.A string that starts with a vowel
  2. B.One character that is not a lowercase vowel
  3. C.Any number of vowels
  4. D.The letters ^, a, e, i, o, u
Answer & explanation

Correct answer: One character that is not a lowercase vowel

A ^ at the start of square brackets means "not any of these".

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 →