← 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?
- A.A string that starts with a vowel
- B.One character that is not a lowercase vowel
- C.Any number of vowels
- 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 →